14 lines
294 B
Docker
14 lines
294 B
Docker
FROM alpine:3.8
|
|
|
|
ADD ["./requirements.txt", "/requirements.txt"]
|
|
RUN apk add --update --no-cache python3 postgresql-dev py3-psycopg2 && \
|
|
pip3 install -r /requirements.txt && \
|
|
rm /requirements.txt && \
|
|
adduser -D app
|
|
ADD ["src","/"]
|
|
|
|
CMD ["python3", "-u", "/main.py"]
|
|
|
|
EXPOSE 5000
|
|
USER app
|