better docker
This commit is contained in:
parent
7d03b80f7a
commit
7e7db5a480
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue