Compare commits

..

No commits in common. "deps" and "master" have entirely different histories.
deps ... master

2 changed files with 4 additions and 11 deletions

View File

@ -6,19 +6,12 @@ COPY . /app/src
WORKDIR /app/src
RUN poetry config virtualenvs.in-project true && \
RUN poetry config virtualenvs.create false && \
poetry install --no-interaction --no-ansi
RUN /app/src/.venv/bin/python manage.py collectstatic --noinput
RUN ./manage.py collectstatic --noinput
FROM python:3.11-alpine3.18 AS django-api
COPY --from=django-static-builder /app/src /app/src/
WORKDIR /app/src
CMD /app/src/.venv/bin/python manage.py runserver 0.0.0.0:8080
CMD ./manage.py runserver 0.0.0.0:8080
FROM nginx:1.25.1-alpine AS front

View File

@ -1,7 +1,7 @@
services:
staticfiles-api:
build:
target: django-api
target: django-static-builder
image: staticfiles-api:develop
restart: unless-stopped