mirror of
https://github.com/nelsbrock/NateMan.git
synced 2026-08-14 21:36:49 +02:00
update Dockerfile and add note in README.md
This commit is contained in:
+7
-17
@@ -1,17 +1,9 @@
|
||||
FROM alpine
|
||||
FROM alpine:3.16
|
||||
|
||||
MAINTAINER Niklas Elsbrock
|
||||
|
||||
# add apk edge repositories (including `testing` for py3-flask-sqlalchemy)
|
||||
# and update package index
|
||||
RUN echo -e "https://dl-cdn.alpinelinux.org/alpine/edge/main/\n"\
|
||||
"https://dl-cdn.alpinelinux.org/alpine/edge/community/\n"\
|
||||
"https://dl-cdn.alpinelinux.org/alpine/edge/testing/"\
|
||||
> /etc/apk/repositories \
|
||||
&& apk --no-cache update
|
||||
|
||||
# install nateman
|
||||
RUN apk --no-cache add \
|
||||
RUN echo "https://dl-cdn.alpinelinux.org/alpine/edge/testing/" >> /etc/apk/repositories \
|
||||
&& apk add --no-cache \
|
||||
python3 \
|
||||
py3-flask \
|
||||
py3-flask-sqlalchemy \
|
||||
@@ -19,14 +11,12 @@ RUN apk --no-cache add \
|
||||
py3-yaml \
|
||||
py3-bcrypt \
|
||||
py3-openpyxl \
|
||||
&& mkdir -p /srv/nateman/nateman
|
||||
&& mkdir -p /srv/nateman/app
|
||||
|
||||
COPY nateman /srv/nateman/nateman
|
||||
COPY nateman /srv/nateman/app
|
||||
WORKDIR /srv/nateman
|
||||
|
||||
# expose webserver port
|
||||
EXPOSE 8080
|
||||
|
||||
# start command
|
||||
CMD ["env","FLASK_APP=nateman","FLASK_ENV=development",\
|
||||
"flask","run","--host=0.0.0.0","--port=8080"]
|
||||
ENV FLASK_ENV=development
|
||||
CMD ["flask","run","--host=0.0.0.0","--port=8080"]
|
||||
|
||||
@@ -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!*
|
||||
|
||||
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).
|
||||
<details>
|
||||
<summary>Details</summary>
|
||||
|
||||
Reference in New Issue
Block a user