-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (34 loc) · 1.37 KB
/
Dockerfile
File metadata and controls
44 lines (34 loc) · 1.37 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM python:3.11.13-slim-bookworm
# -----------------------------------------
RUN mkdir -p /kb/deployment/lib
RUN apt-get update && \
apt-get install -y --no-install-recommends \
zip=3.0-13 \
unzip=6.0-28 \
bzip2=1.0.8-5+b1 \
libmagic-dev=1:5.44-3 \
htop=3.2.2-2 \
wget=1.21.3-1+deb12u1 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY ./requirements.txt /requirements.txt
RUN python -m pip install "pip==25.1.1" && pip install -r /requirements.txt && rm /requirements.txt
COPY ./globus.cfg /etc/globus.cfg
RUN touch /var/log/globus.log && chmod 777 /var/log/globus.log
COPY ./ /kb/module
RUN cp -r /kb/module/staging_service /kb/deployment/lib && \
cp -r /kb/module/deployment /kb && \
mkdir -p /kb/deployment/scripts
COPY ./scripts/run_dts_watcher.py /kb/deployment/scripts
ENV PYTHONPATH="/kb/deployment/lib:$PYTHONPATH"
EXPOSE 3000
WORKDIR /kb/deployment/lib
# The BUILD_DATE value seem to bust the docker cache when the timestamp changes, move to
# the end
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/kbase/staging_service.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.1.8" \
us.kbase.vcs-branch=$BRANCH \
maintainer="Steve Chan sychan@lbl.gov"
ENTRYPOINT ["/kb/deployment/bin/entrypoint_staging_service.sh"]