Made the Docker image significantly smaller
This commit is contained in:
12
Dockerfile
Normal file
12
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user