Skip to content

Commit 6bf4f10

Browse files
committed
update Dockerfile
1 parent d21c645 commit 6bf4f10

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

Dockerfile

+20-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
1-
FROM kbase/kb_python:python3
1+
FROM python:3.9.19
22

33
ARG BUILD_DATE
44
ARG VCS_REF
55
ARG BRANCH=develop
66

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
724
COPY ./ /kb/module
825
WORKDIR /kb/module
926

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-
1327
LABEL org.label-schema.build-date=$BUILD_DATE \
1428
org.label-schema.vcs-url="https://github.com/kbase/feeds.git" \
1529
org.label-schema.vcs-ref=$VCS_REF \
@@ -21,5 +35,5 @@ ENV KB_DEPLOYMENT_CONFIG=/kb/module/deploy.cfg
2135

2236
ENTRYPOINT [ "/kb/deployment/bin/dockerize" ]
2337
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" ]

0 commit comments

Comments
 (0)