mirror of
https://github.com/nelsbrock/NateMan.git
synced 2026-08-14 21:36:49 +02:00
update Dockerfile
- update Alpine to version 3.17 - add compatibility workaround for the Flask-SQLAlchemy package - use Flask's `--debug` flag instead of the `FLASK_ENV` environment variable
This commit is contained in:
+5
-3
@@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.16
|
FROM alpine:3.17
|
||||||
|
|
||||||
MAINTAINER Niklas Elsbrock
|
MAINTAINER Niklas Elsbrock
|
||||||
|
|
||||||
@@ -11,6 +11,9 @@ RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repos
|
|||||||
py3-yaml \
|
py3-yaml \
|
||||||
py3-bcrypt \
|
py3-bcrypt \
|
||||||
py3-openpyxl \
|
py3-openpyxl \
|
||||||
|
# Dirty compatibility workaround: Due to `py3-flask-sqlalchemy` originating from the Alpine testing repository
|
||||||
|
# and therefore being built for a newer version of python, we need to move its files from python3.11 to python3.10.
|
||||||
|
&& mv /usr/lib/python3.11/site-packages/* /usr/lib/python3.10/site-packages/ \
|
||||||
&& mkdir -p /srv/nateman/app
|
&& mkdir -p /srv/nateman/app
|
||||||
|
|
||||||
COPY nateman /srv/nateman/app
|
COPY nateman /srv/nateman/app
|
||||||
@@ -18,5 +21,4 @@ WORKDIR /srv/nateman
|
|||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
ENV FLASK_ENV=development
|
CMD ["flask","--debug","run","--host=0.0.0.0","--port=8080"]
|
||||||
CMD ["flask","run","--host=0.0.0.0","--port=8080"]
|
|
||||||
|
|||||||
Reference in New Issue
Block a user