forked from covid19cuba/covid19cuba-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (19 loc) · 737 Bytes
/
Dockerfile
File metadata and controls
21 lines (19 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3-slim AS builder
ADD . /app
WORKDIR /app
# We are installing a dependency here directly into our app source dir
RUN pip3 install --target=/app Cython
RUN pip3 install --target=/app jsonschema
RUN pip3 install --target=/app importlib_metadata
RUN pip3 install --target=/app python-telegram-bot
RUN pip3 install --target=/app feedparser
RUN pip3 install --target=/app requests
RUN pip3 install --target=/app bs4
RUN pip3 install --target=/app parsel
# A distroless container image with Python and some basics like SSL certificates
# https://github.com/GoogleContainerTools/distroless
FROM gcr.io/distroless/python3-debian10
COPY --from=builder /app /app
WORKDIR /app
ENV PYTHONPATH /app
CMD ["/app/main.py", "--production"]