mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-13 16:03:17 +00:00
app
migrations
tests
.gitignore
.gitlab-ci.yml
Dockerfile
README.md
config.py
db.env.tpl
docker-compose.yml
docker-entrypoint.sh
opaque.py
requirements.txt
web.env.tpl
29 lines
413 B
Docker
29 lines
413 B
Docker
FROM python:3.6-alpine
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
|
|
ENV FLASK_APP=opaque.py
|
|
|
|
|
|
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 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"]
|