Added docker container
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM python:3.7.4-alpine
|
||||
|
||||
RUN apk add sqlite3
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt gunicorn
|
||||
COPY . .
|
||||
|
||||
|
||||
ENV WIE_RIJD_DB "/data/wie_rijd.db"
|
||||
|
||||
VOLUME /data
|
||||
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]
|
||||
Reference in New Issue
Block a user