diff --git a/docker-compose.yml b/docker-compose.yml index 6182f59..54def0d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/docker/main/Dockerfile b/docker/main/Dockerfile index 628aaa4..62286c3 100644 --- a/docker/main/Dockerfile +++ b/docker/main/Dockerfile @@ -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