-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (18 loc) · 690 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM continuumio/miniconda3
SHELL ["/bin/bash", "-c"]
ADD environment.yaml /tmp/environment.yaml
# Install Mamba
RUN conda install mamba libarchive -c conda-forge --yes
RUN mamba env create -f /tmp/environment.yaml -n ipd-ref-generator \
&& mamba clean --all -f --yes \
&& mamba init bash \
&& echo "conda activate ipd-ref-generator" > ~/.bashrc
ENV PATH=/opt/conda/envs/ipd-ref-generator/bin:$PATH
ENV CONDA_DEFAULT_ENV=ipd-ref-generator
COPY src/downloadIPD.go .
RUN go mod init goDownloadIPD && \
go get github.com/gofrs/flock && \
go build -o goDownloadIPD downloadIPD.go && \
mv goDownloadIPD /usr/local/bin && \
chmod +x /usr/local/bin/goDownloadIPD
CMD ["/bin/bash"]