better docker

This commit is contained in:
Christoph J. Scherr 2023-09-27 21:34:46 +02:00
parent 7d03b80f7a
commit 7e7db5a480
2 changed files with 5 additions and 3 deletions

View File

@ -14,7 +14,11 @@ services:
main:
build: ./docker/main
command: python manage.py runserver 0.0.0.0:80
command: bash -c "
python manage.py migrate
&& python manage.py collectstatic --noinput
&& python manage.py runserver 0.0.0.0:8000
"
volumes:
- ./gawa:/app
environment:

View File

@ -8,5 +8,3 @@ RUN apt update && apt install -y gettext && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app/
RUN pip install -r requirements.txt
COPY . /app/
# RUN ls -la /app/ ; return 1
# RUN python /app/manage.py collectstatic --noinput