Skip to content

Commit

Permalink
move requirements files to designated folder that is copied to container
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonavic committed Jan 14, 2025
1 parent 84e3501 commit 0c2b5b5
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ WORKDIR /app

RUN useradd --no-create-home signals-gisib

COPY requirements.txt /requirements.txt
COPY requirements_test.txt /requirements_test.txt
COPY ./app/requirements /app/requirements

RUN set -eux; \
apt-get update; \
Expand All @@ -29,7 +28,7 @@ RUN set -eux; \
apt-get purge -y --auto-remove; \
rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir -r /requirements.txt
RUN pip install --no-cache-dir -r /app/requirements/requirements.txt

COPY app /app

Expand All @@ -50,6 +49,5 @@ CMD ["gunicorn", "main.asgi:application", "-k", "uvicorn.workers.UvicornWorker",

FROM app AS dev
USER root
COPY requirements_dev.txt /requirements_dev.txt
RUN pip install -r /requirements_dev.txt
RUN pip install -r /app/requirements/requirements_dev.txt
USER signals-gisib
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0c2b5b5

Please sign in to comment.