update Dockerfile and add note in README.md

This commit is contained in:
2022-11-02 23:02:06 +01:00
parent 320beeaa0d
commit e817a3ff71
2 changed files with 16 additions and 24 deletions
+14 -24
View File
@@ -1,32 +1,22 @@
FROM alpine FROM alpine:3.16
MAINTAINER Niklas Elsbrock MAINTAINER Niklas Elsbrock
# add apk edge repositories (including `testing` for py3-flask-sqlalchemy) RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \
# and update package index && apk add --no-cache \
RUN echo -e "https://dl-cdn.alpinelinux.org/alpine/edge/main/\n"\ python3 \
"https://dl-cdn.alpinelinux.org/alpine/edge/community/\n"\ py3-flask \
"https://dl-cdn.alpinelinux.org/alpine/edge/testing/"\ py3-flask-sqlalchemy \
> /etc/apk/repositories \ py3-click \
&& apk --no-cache update py3-yaml \
py3-bcrypt \
py3-openpyxl \
&& mkdir -p /srv/nateman/app
# install nateman COPY nateman /srv/nateman/app
RUN apk --no-cache add \
python3 \
py3-flask \
py3-flask-sqlalchemy \
py3-click \
py3-yaml \
py3-bcrypt \
py3-openpyxl \
&& mkdir -p /srv/nateman/nateman
COPY nateman /srv/nateman/nateman
WORKDIR /srv/nateman WORKDIR /srv/nateman
# expose webserver port
EXPOSE 8080 EXPOSE 8080
# start command ENV FLASK_ENV=development
CMD ["env","FLASK_APP=nateman","FLASK_ENV=development",\ CMD ["flask","run","--host=0.0.0.0","--port=8080"]
"flask","run","--host=0.0.0.0","--port=8080"]
+2
View File
@@ -18,6 +18,8 @@ NateMan (**Na**chschreib**te**rmin-**Man**ager) ist eine Webanwendung zur Koordi
*Die schnelle Installation ist nur zum Ausprobieren geeignet und sollte nicht produktiv eingesetzt werden!* *Die schnelle Installation ist nur zum Ausprobieren geeignet und sollte nicht produktiv eingesetzt werden!*
Dieser Abschnitt beschreibt die manuelle Installation von NateMan. Zur Installation mit Docker steht ein [Dockerfile](/Dockerfile) zur Verfügung.
1. Installieren Sie [Python](https://www.python.org/downloads/) und [Python-Venv](https://docs.python.org/3/library/venv.html). 1. Installieren Sie [Python](https://www.python.org/downloads/) und [Python-Venv](https://docs.python.org/3/library/venv.html).
<details> <details>
<summary>Details</summary> <summary>Details</summary>