-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
37 lines (28 loc) · 863 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
28
29
30
31
32
33
34
35
36
37
FROM bitnami/minideb:latest
# Build arguments passed into the docker command for image metadata
ARG BUILD_DATE
ARG COMMIT
ARG BRANCH
# Install Base Packages
RUN \
install_packages \
bash \
curl \
git \
python3 \
python3-flask \
python3-pip
COPY requirements.txt /requirements.txt
# RUN pip install requests docker python-json-logger structlog && \
RUN pip3 install --upgrade pip && \
pip install -r /requirements.txt
COPY . /static-server/
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/jsfillman/static-server.git" \
org.label-schema.vcs-ref=$COMMIT \
org.label-schema.schema-version="1.0.0-rc1" \
us.kbase.vcs-branch=$BRANCH \
maintainer="JS Fillman [email protected]"
ENV COMMIT_SHA=${COMMIT}
WORKDIR /static-server
ENTRYPOINT ["python3", "./app.py"]