diff --git a/backend/Dockerfile b/backend/Dockerfile index 32abd75..09d66c2 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -7,7 +7,7 @@ RUN git clone https://github.com/nezhar/snypy-backend --single-branch --branch $ # https://hub.docker.com/_/python FROM python:3.10-slim COPY --from=src /code/snypy /usr/src/app/snypy -COPY --from=src /code/requirements.txt /usr/src/app/snypy/requirements.txt +COPY --from=src /code/requirements/base.txt /usr/src/app/snypy/requirements.txt WORKDIR /usr/src/app/snypy RUN pip install --no-cache-dir pip gunicorn psycopg2-binary -U RUN pip install --no-cache-dir -r requirements.txt diff --git a/backend/Dockerfile.dev b/backend/Dockerfile.dev index 4efdec4..4273a3f 100644 --- a/backend/Dockerfile.dev +++ b/backend/Dockerfile.dev @@ -1,7 +1,7 @@ # https://hub.docker.com/_/python FROM python:3.10-slim WORKDIR /usr/src/app/snypy -COPY /code/snypy-backend/requirements.txt /usr/src/app/snypy/requirements.txt +COPY /code/snypy-backend/requirements/base.txt /usr/src/app/snypy/requirements.txt RUN pip install --no-cache-dir pip gunicorn psycopg2-binary -U RUN pip install --no-cache-dir -r requirements.txt diff --git a/static/Dockerfile b/static/Dockerfile index d3867c5..326448d 100644 --- a/static/Dockerfile +++ b/static/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /usr/src/app RUN git clone https://github.com/nezhar/snypy-backend . RUN git checkout $GIT_HASH RUN pip install pip -U -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir -r requirements/base.txt WORKDIR /usr/src/app/snypy ENV SECRET_KEY=static