nopaque/Dockerfile
2019-09-05 16:39:50 +02:00

36 lines
441 B
Docker

FROM python:3.6-alpine
RUN apk add \
build-base \
postgresql-dev
RUN adduser -D opaque
USER opaque
WORKDIR /home/opaque
COPY app app
COPY migrations migrations
COPY config.py opaque.py ./
COPY requirements.txt requirements.txt
ENV FLASK_APP=opaque.py
RUN python -m venv venv && \
venv/bin/pip install -r requirements.txt
COPY docker-entrypoint.sh /usr/local/bin/
EXPOSE 5000
ENTRYPOINT ["docker-entrypoint.sh"]