add docker

This commit is contained in:
Bryan Gerlach
2025-01-23 16:44:17 -06:00
parent 7c7217e1d4
commit d293698e00
7 changed files with 66 additions and 81 deletions

15
dockerfile Normal file
View File

@@ -0,0 +1,15 @@
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"]