Skip to content

Commit a0bad8a

Browse files
committed
Fallback to requirements.txt, given poetry limit
python-poetry/poetry#5172 wait for merge
1 parent 03fdf4d commit a0bad8a

File tree

5 files changed

+8
-130
lines changed

5 files changed

+8
-130
lines changed

importTools/Dockerfile

+2-14
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
# dev image
2-
FROM python:3.8-slim as dev
2+
FROM python:3.10-slim
33
ENV PYTHONDONTWRITEBYTECODE 1
44
WORKDIR /usr/src/app
5-
6-
COPY poetry.lock pyproject.toml ./
7-
RUN pip install poetry \
8-
&& poetry config virtualenvs.create false
9-
RUN poetry install --no-interaction --no-ansi \
10-
&& poetry export -f requirements.txt --output requirements.txt
11-
12-
FROM python:3.8-slim AS prod
13-
WORKDIR /usr/src/app
145
# copy and install dependencies
15-
COPY --from=dev /usr/src/app/requirements.txt ./
6+
COPY requirements.txt update_locations.py ./
167
RUN pip install -r requirements.txt
17-
# copy app sources
18-
COPY ./*.py ./
19-
COPY scilog scilog
208

219
CMD ["python", "update_locations.py"]

importTools/docker-compose.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ services:
33
app:
44
build:
55
context: .
6-
target: dev
76
volumes:
87
- .:/usr/src/app
98
- .env:/usr/src/app/.env

importTools/poetry.lock

-99
This file was deleted.

importTools/pyproject.toml

-16
This file was deleted.

importTools/requirements.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
certifi==2022.6.15
2+
charset-normalizer==2.1.0
3+
idna==3.3
4+
python-dotenv==0.20.0
5+
requests==2.28.1
6+
urllib3==1.26.11

0 commit comments

Comments
 (0)