This commit is contained in:
r0mchik 2025-05-19 11:00:46 +07:00
parent d841b0f292
commit a07a752141
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,9 @@
services:
web:
build: ./web
command: >
sh -c "python manage.py collectstatic --noinput &&
daphne -b 0.0.0.0 -p 8106 app.asgi:application"
volumes:
- .:/app
- ./media:/app/media

View File

@ -19,8 +19,5 @@ WORKDIR /app/web
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN python manage.py collectstatic --noinput
COPY . .
COPY models ./models
CMD ["daphne", "-b", "0.0.0.0", "-p", "8106", "app.asgi:application"]
COPY models ./models