Skip to content

Commit 87258fe

Browse files
authored
Add dockerfile for building worker environment. Close #1721 (#1722)
1 parent b67d6ba commit 87258fe

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

docker/Dockerfile.workerenv

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM node:12
2+
3+
LABEL maintainer1.name="Brian Broll"\
4+
maintainer1.email="[email protected]"
5+
6+
LABEL maintainer2.name="Umesh Timalsina"\
7+
maintainer2.email="[email protected]"
8+
9+
SHELL ["/bin/bash", "-c"]
10+
11+
ENV MINICONDA Miniconda3-latest-Linux-x86_64.sh
12+
13+
ADD ./src/plugins/GenerateJob/templates/environment.worker.yml /tmp
14+
15+
WORKDIR /tmp
16+
17+
RUN curl -O https://repo.anaconda.com/miniconda/$MINICONDA && bash $MINICONDA -b && rm -f $MINICONDA
18+
19+
ENV PATH /root/miniconda3/bin:$PATH
20+
21+
RUN conda update conda -yq
22+
23+
RUN npm install -g npm
24+
25+
RUN pip install simplejson
26+
RUN conda env create -n deepforge --file /tmp/environment.worker.yml
27+
28+
ENTRYPOINT /bin/bash

0 commit comments

Comments
 (0)