declutter by using default filenames

This commit is contained in:
Patrick Jentsch 2024-04-10 13:52:33 +02:00
parent 268da220d2
commit cdf6f9fcfd
6 changed files with 4 additions and 6 deletions

View File

@ -5,9 +5,8 @@
!app
!migrations
!tests
!.flaskenv
!boot.sh
!config.py
!docker-nopaque-entrypoint.sh
!nopaque.py
!requirements.txt
!wsgi.py

View File

@ -1 +0,0 @@
FLASK_APP=nopaque.py

View File

@ -46,7 +46,7 @@ COPY docker-nopaque-entrypoint.sh /usr/local/bin/
COPY --chown=nopaque:nopaque app app
COPY --chown=nopaque:nopaque migrations migrations
COPY --chown=nopaque:nopaque tests tests
COPY --chown=nopaque:nopaque .flaskenv boot.sh config.py nopaque.py requirements.txt ./
COPY --chown=nopaque:nopaque boot.sh config.py wsgi.py requirements.txt ./
RUN mkdir logs

View File

@ -24,7 +24,7 @@ if [[ "${#}" == "0" ]]; then
sleep 5
done
fi
python3 nopaque.py
python3 wsgi.py
elif [[ "${1}" == "flask" ]]; then
flask ${@:2}
elif [[ "${1}" == "--help" || "${1}" == "-h" ]]; then

View File

@ -11,6 +11,6 @@ services:
- "./config.py:/home/nopaque/config.py"
- "./docker-entrypoint.sh:/usr/local/bin/docker-entrypoint.sh"
- "./migrations:/home/nopaque/migrations"
- "./nopaque.py:/home/nopaque/nopaque.py"
- "./requirements.txt:/home/nopaque/requirements.txt"
- "./tests:/home/nopaque/tests"
- "./wsgi.py:/home/nopaque/wsgi.py"

View File