Skip to content

Commit

Permalink
Fallback to requirements.txt, given poetry limit
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Aug 8, 2022
1 parent 763b48c commit 9e6312b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 130 deletions.
16 changes: 2 additions & 14 deletions importTools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
# dev image
FROM python:3.8-slim as dev
FROM python:3.10-slim
ENV PYTHONDONTWRITEBYTECODE 1
WORKDIR /usr/src/app

COPY poetry.lock pyproject.toml ./
RUN pip install poetry \
&& poetry config virtualenvs.create false
RUN poetry install --no-interaction --no-ansi \
&& poetry export -f requirements.txt --output requirements.txt

FROM python:3.8-slim AS prod
WORKDIR /usr/src/app
# copy and install dependencies
COPY --from=dev /usr/src/app/requirements.txt ./
COPY requirements.txt update_locations.py ./
RUN pip install -r requirements.txt
# copy app sources
COPY ./*.py ./
COPY scilog scilog

CMD ["python", "update_locations.py"]
1 change: 0 additions & 1 deletion importTools/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ services:
app:
build:
context: .
target: dev
volumes:
- .:/usr/src/app
- .env:/usr/src/app/.env
Expand Down
99 changes: 0 additions & 99 deletions importTools/poetry.lock

This file was deleted.

16 changes: 0 additions & 16 deletions importTools/pyproject.toml

This file was deleted.

6 changes: 6 additions & 0 deletions importTools/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
certifi==2022.6.15
charset-normalizer==2.1.0
idna==3.3
python-dotenv==0.20.0
requests==2.28.1
urllib3==1.26.11

0 comments on commit 9e6312b

Please sign in to comment.