Initial commit: Product Slip Manager

This commit is contained in:
2026-09-30 14:17:30 +03:30
commit 0af10dde9d
35 changed files with 2341 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project
COPY . .
# Collect static files
RUN python manage.py collectstatic --noinput
# Create data directory for SQLite
RUN mkdir -p /app/data
EXPOSE 8000
CMD ["sh", "-c", "python manage.py migrate --noinput && python manage.py seed_products --skip-existing && gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 2 --timeout 120"]