diff --git a/Dockerfile b/Dockerfile index 95ec999..1073cd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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; \ @@ -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 @@ -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 diff --git a/requirements.in b/app/requirements/requirements.in similarity index 100% rename from requirements.in rename to app/requirements/requirements.in diff --git a/requirements.txt b/app/requirements/requirements.txt similarity index 100% rename from requirements.txt rename to app/requirements/requirements.txt diff --git a/requirements_dev.in b/app/requirements/requirements_dev.in similarity index 100% rename from requirements_dev.in rename to app/requirements/requirements_dev.in diff --git a/requirements_dev.txt b/app/requirements/requirements_dev.txt similarity index 100% rename from requirements_dev.txt rename to app/requirements/requirements_dev.txt diff --git a/requirements_test.in b/app/requirements/requirements_test.in similarity index 100% rename from requirements_test.in rename to app/requirements/requirements_test.in diff --git a/requirements_test.txt b/app/requirements/requirements_test.txt similarity index 100% rename from requirements_test.txt rename to app/requirements/requirements_test.txt