Made the Docker image significantly smaller

This commit is contained in:
Nicola Belluti
2025-01-30 10:59:56 +01:00
parent b605b0b9b3
commit f67af8efd7
3 changed files with 28 additions and 16 deletions

12
Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM python:3.13-alpine
WORKDIR /opt/rdgen
COPY . .
RUN pip install --no-cache-dir -r requirements.txt \
&& python manage.py migrate
EXPOSE 8000
CMD ["gunicorn", "-c", "gunicorn.conf.py", "rdgen.wsgi:application"]