Skip to content

Commit

Permalink
Merge pull request #32 from snypy/update-requirements
Browse files Browse the repository at this point in the history
Update requirements path for rest api
  • Loading branch information
nezhar authored Jul 13, 2024
2 parents ba16d6c + 407eb62 commit 2a07744
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion static/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a07744

Please sign in to comment.