nopaque/Dockerfile

31 lines
388 B
Docker

FROM python:3.6-alpine
RUN apk add build-base
RUN adduser -D opaque
USER opaque
WORKDIR /home/opaque
COPY app app
COPY migrations migrations
COPY opaque.py config.py ./
COPY requirements.txt requirements.txt
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"]