better dockerfile and docker-compose
BiRabittoh birabittoh@tilde.team
Sun, 27 Aug 2023 13:27:42 +0200
2 files changed,
4 insertions(+),
8 deletions(-)
M
Dockerfile
→
Dockerfile
@@ -1,9 +1,10 @@
FROM tecktron/python-waitress:slim +WORKDIR /app + RUN pip install --upgrade pip COPY ./requirements.txt . RUN pip install -r requirements.txt -COPY ./artbound_python /app/artbound_python -WORKDIR /app +COPY ./artbound_python ./artbound_python ENV APP_MODULE=artbound_python:app
M
docker-compose.yaml
→
docker-compose.yaml
@@ -1,7 +1,7 @@
services: app: build: . - image: artbound_python:latest + image: ghcr.io/birabittoh/artbound-python:main container_name: artbound-python ports: - 127.0.0.1:1111:80@@ -11,10 +11,5 @@ - cache:/app/artbound_python/static/res/cache/
- ${PWD}/.env:/app/.env - ${PWD}/credentials.json:/app/credentials.json - ${PWD}/token.json:/app/token.json - #healthcheck: - # test: wget -nv --tries=1 --spider http://localhost || exit 1 - # interval: 30s - # timeout: 5s - # retries: 2 volumes: cache: