feat / AEB-61 add dockeringore files

This commit is contained in:
Timofey
2025-10-04 13:19:12 +03:00
parent d3c270ab9d
commit a822ea587c
8 changed files with 591 additions and 566 deletions

15
backend/Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3.13-alpine
WORKDIR /app
COPY requirements.txt .
RUN apk add iproute2-ss
COPY --chmod=755 <<EOT ./entrypoint.sh
#!/usr/bin/env sh
set -e
./manage.py collectstatic -c --noinput &&
gunicorn --bind 0.0.0.0:8000 base.wsgi:application
EOT
RUN pip install gunicorn
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 8000
ENTRYPOINT ["./entrypoint.sh"]