nopaque/Dockerfile

33 lines
511 B
Docker
Raw Normal View History

FROM python:3.6-alpine
2019-09-06 11:38:35 +02:00
EXPOSE 5000
ENV FLASK_APP=opaque.py
2019-09-05 16:39:50 +02:00
RUN apk add \
2019-10-23 14:42:23 +02:00
bash \
2019-09-05 16:39:50 +02:00
build-base \
2019-10-23 14:05:23 +02:00
git \
2019-09-05 16:39:50 +02:00
postgresql-dev
RUN adduser -D opaque
USER opaque
WORKDIR /home/opaque
COPY app app
2019-09-11 15:52:38 +02:00
COPY migrations migrations
2019-09-06 11:38:35 +02:00
COPY config.py opaque.py requirements.txt ./
RUN python -m venv venv && \
venv/bin/pip install -r requirements.txt
2019-10-23 13:58:27 +02:00
# add wait for it
2019-10-23 14:15:45 +02:00
RUN git clone https://github.com/vishnubob/wait-for-it.git
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]