Initial build
Some checks failed
Urania unit tests / Run-unit-tests (push) Failing after 1m29s

This commit is contained in:
2025-10-17 11:55:45 +02:00
parent 4b65f134fe
commit feb4663a3f
3 changed files with 60 additions and 13 deletions

20
docker/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM python:3.12
COPY src/requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
WORKDIR /pda-new
# Copy control files and pull in dependencies
COPY src/ ./
ENV DJANGO_APP_PORT=8000
ENV DJANGO_SECRET_KEY='=m=3)ea$s@*u25(8_9197vyh$8d+8_qqd7@*n6t6#^zih(t1rj'
ENV DJANGO_ALLOWED_HOSTS='localhost','127.0.0.1'
EXPOSE ${DJANGO_APP_PORT}
ENTRYPOINT ["python","manage.py"]
CMD ["runserver",${DJANGO_APP_PORT}]