25 lines
677 B
Docker
25 lines
677 B
Docker
# Base on latest (edge) alpine image
|
|
FROM harbor.ervine.dev/public/x86_64/alpine:v3.12
|
|
|
|
LABEL "MAINTAINER Jonathan Ervine <docker@ervine.org>"
|
|
|
|
# Install updates
|
|
ENV LANG='en_US.UTF-8' \
|
|
LANGUAGE='en_US.UTF-8' \
|
|
FLASK_APP=/data/app-dev/app.py
|
|
|
|
ADD requirements.txt /tmp/requirements.txt
|
|
|
|
RUN apk update && \
|
|
apk -U upgrade --ignore alpine-baselayout && \
|
|
apk -U add python3 gcc python3-dev musl-dev libffi-dev && \
|
|
adduser -D python && \
|
|
pip3 install -r /tmp/requirements.txt && \
|
|
rm -rf /tmp/src && rm -rf /var/cache/apk/* && rm -f /tmp/requirements.txt
|
|
|
|
EXPOSE 3000
|
|
|
|
#USER python
|
|
|
|
CMD [ "/usr/bin/flask", "run", "--host=0.0.0.0", "--port=3000" ]
|