File tree 5 files changed +8
-130
lines changed
5 files changed +8
-130
lines changed Original file line number Diff line number Diff line change 1
1
# dev image
2
- FROM python:3.8 -slim as dev
2
+ FROM python:3.10 -slim
3
3
ENV PYTHONDONTWRITEBYTECODE 1
4
4
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
14
5
# copy and install dependencies
15
- COPY --from=dev /usr/src/app/ requirements.txt ./
6
+ COPY requirements.txt update_locations.py ./
16
7
RUN pip install -r requirements.txt
17
- # copy app sources
18
- COPY ./*.py ./
19
- COPY scilog scilog
20
8
21
9
CMD ["python" , "update_locations.py" ]
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ services:
3
3
app :
4
4
build :
5
5
context : .
6
- target : dev
7
6
volumes :
8
7
- .:/usr/src/app
9
8
- .env:/usr/src/app/.env
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments