nopaque/Dockerfile

29 lines
413 B
Docker
Raw Normal View History

FROM python:3.6-alpine
2019-09-06 09:38:35 +00:00
EXPOSE 5000
ENV FLASK_APP=opaque.py
2019-09-05 14:39:50 +00:00
RUN apk add \
build-base \
postgresql-dev
RUN adduser -D opaque
USER opaque
WORKDIR /home/opaque
COPY app app
2019-09-11 13:52:38 +00:00
COPY migrations migrations
2019-09-06 09:38:35 +00:00
COPY config.py opaque.py requirements.txt ./
RUN python -m venv venv && \
venv/bin/pip install -r requirements.txt
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]