15 lines
296 B
Docker
15 lines
296 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
|
|
|
|
WORKDIR /app
|
|
|
|
CMD ["python3", "-u", "/app/main.py"]
|
|
|
|
EXPOSE 5000
|
|
USER app
|