File tree 1 file changed +20
-6
lines changed
1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change 1
- FROM kbase/kb_python:python3
1
+ FROM python:3.9.19
2
2
3
3
ARG BUILD_DATE
4
4
ARG VCS_REF
5
5
ARG BRANCH=develop
6
6
7
+ RUN apt-get update
8
+ RUN apt-get install wget
9
+
10
+ # install dockerize
11
+ WORKDIR /opt
12
+ RUN wget -q https://github.com/kbase/dockerize/raw/master/dockerize-linux-amd64-v0.6.1.tar.gz \
13
+ && tar xvzf dockerize-linux-amd64-v0.6.1.tar.gz \
14
+ && rm dockerize-linux-amd64-v0.6.1.tar.gz
15
+ RUN mkdir -p /kb/deployment/bin/
16
+ RUN ln -s /opt/dockerize /kb/deployment/bin/dockerize
17
+
18
+ # install dependencies
19
+ RUN pip install --upgrade pip
20
+ COPY requirements.txt ./
21
+ RUN pip install -r requirements.txt
22
+
23
+ # set workdir
7
24
COPY ./ /kb/module
8
25
WORKDIR /kb/module
9
26
10
- RUN pip install --upgrade pip setuptools wheel
11
- RUN while read requirement; do conda install --yes $requirement || pip install $requirement; done < /kb/module/requirements.txt
12
-
13
27
LABEL org.label-schema.build-date=$BUILD_DATE \
14
28
org.label-schema.vcs-url="https://github.com/kbase/feeds.git" \
15
29
org.label-schema.vcs-ref=$VCS_REF \
@@ -21,5 +35,5 @@ ENV KB_DEPLOYMENT_CONFIG=/kb/module/deploy.cfg
21
35
22
36
ENTRYPOINT [ "/kb/deployment/bin/dockerize" ]
23
37
CMD [ "--template" , \
24
- "/kb/module/deployment/conf/.templates/deploy.cfg.templ:/kb/module/deploy.cfg" \
25
- "make start" ]
38
+ "/kb/module/deployment/conf/.templates/deploy.cfg.templ:/kb/module/deploy.cfg" , \
39
+ "make" , " start" ]
You can’t perform that action at this time.
0 commit comments