mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
31 lines
388 B
Docker
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"]
|