Made the Docker image significantly smaller
This commit is contained in:
@@ -1 +1,16 @@
|
|||||||
|
docker-compose.yml
|
||||||
|
|
||||||
|
# Docs
|
||||||
|
README.md
|
||||||
|
setup.md
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
# Git stuff
|
||||||
|
.git
|
||||||
|
.github
|
||||||
|
.gitignore
|
||||||
|
|
||||||
|
# .gitignore
|
||||||
|
*.pyc
|
||||||
|
.venv
|
||||||
db.sqlite3
|
db.sqlite3
|
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"]
|
15
dockerfile
15
dockerfile
@@ -1,15 +0,0 @@
|
|||||||
FROM python:3.13
|
|
||||||
|
|
||||||
WORKDIR /opt/rdgen
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN python -m venv rdgen
|
|
||||||
RUN chmod +x rdgen/bin/activate
|
|
||||||
RUN /bin/sh -c rdgen/bin/activate
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
|
||||||
RUN python manage.py migrate
|
|
||||||
|
|
||||||
EXPOSE 8000
|
|
||||||
|
|
||||||
CMD ["gunicorn", "-c", "gunicorn.conf.py", "rdgen.wsgi:application"]
|
|
Reference in New Issue
Block a user