mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-12 09:00:40 +00:00
Dockerize the App!
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
FROM python:3.6-alpine
|
||||
|
||||
|
||||
RUN apk add build-base
|
||||
RUN apk add \
|
||||
build-base \
|
||||
postgresql-dev
|
||||
|
||||
|
||||
RUN adduser -D opaque
|
||||
@ -13,10 +15,13 @@ WORKDIR /home/opaque
|
||||
|
||||
COPY app app
|
||||
COPY migrations migrations
|
||||
COPY opaque.py config.py ./
|
||||
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
|
||||
|
||||
|
Reference in New Issue
Block a user