Skip to content

Commit b2e0593

Browse files
using poetry in docker instread of raw pip, ignoring dev dependencies
1 parent f89f87c commit b2e0593

File tree

3 files changed

+348
-363
lines changed

3 files changed

+348
-363
lines changed

Dockerfile

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
FROM python:3.11-slim
22

3-
RUN apt-get update
4-
RUN apt-get install python3 python3-pip -y
5-
RUN pip3 install --upgrade pip
3+
#RUN apt-get update
4+
#RUN apt-get install python3 python3-pip -y
5+
#RUN pip3 install --upgrade pip
66
WORKDIR /Chronogram
77

8-
COPY ./requirements.txt /Chronogram/requirements.txt
9-
10-
RUN pip3 install -r requirements.txt
8+
RUN pip install poetry
9+
#COPY ./requirements.txt /Chronogram/requirements.txt
1110

11+
#RUN pip3 install -r requirements.txt
1212
COPY . .
13+
RUN poetry install --without dev
1314

14-
CMD python3 __main__.py
15+
CMD poetry run python __main__.py

0 commit comments

Comments
 (0)