feat: PRWLR-3989 add PostgreSQL to project (#10)

* feat: PRWLR-3989 add postgresql to project

* chore: PRWLR-3989 add requested changes to docker structure

* chore: PRWLR-3989 update poetry.lock
This commit is contained in:
Víctor Fernández Poyatos authored and GitHub committed 2024-07-11 10:39:09 -04:00
1 parent 157a54f30c
commit 9df759da60
7 files changed
+160 -14

No files matched your search

+3 -3
View File
@@ -15,6 +15,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir poetry
COPY src/backend/ ./backend/
COPY docker-entrypoint.sh ./docker-entrypoint.sh
ENV PATH="/home/prowler/.local/bin:$PATH"
@@ -32,10 +33,9 @@ RUN apk --no-cache add curl=8.8.0-r0 vim=9.1.0414-r0
USER prowler
ENTRYPOINT ["poetry", "run", "python", "manage.py", "runserver", "0.0.0.0:8000"]
ENTRYPOINT ["../docker-entrypoint.sh", "dev"]
# Production image
FROM build
ENTRYPOINT ["poetry", "run", "gunicorn", "-c", "backend/guniconf.py", "backend.wsgi:application"]
ENTRYPOINT ["../docker-entrypoint.sh", "prod"]