-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
39 lines (32 loc) · 1.23 KB
/
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
38
39
ARG APP_VERSION=""
ARG FROM_IMAGE=python:3.9
ARG IMAGE_REVISION=""
ARG IMAGE_REF_NAME=""
FROM $FROM_IMAGE
LABEL org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.base.digest="" \
org.opencontainers.image.base.name=$FROM_IMAGE \
org.opencontainers.image.created="" \
org.opencontainers.image.description="Proxy Gate" \
org.opencontainers.image.documentation="" \
org.opencontainers.image.licenses="BSD-3-Clause" \
org.opencontainers.image.ref.name=$IMAGE_REF_NAME \
org.opencontainers.image.revision=$IMAGE_REVISION \
org.opencontainers.image.source="https://github.com/digimach/proxy-gate" \
org.opencontainers.image.source="" \
org.opencontainers.image.title="proxy-gate" \
org.opencontainers.image.url="" \
org.opencontainers.image.vendor="Digimach" \
org.opencontainers.image.version=$APP_VERSION
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file to the container
COPY requirements.txt .
# Install the Python dependencies
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Copy the app source
COPY . .
ENV PROXY_GATE_APP_VERSION=$APP_VERSION
# Run the Flask application
CMD [ "./start.sh" ]