Skip to content

Commit 0644cb3

Browse files
committed
add updates poetry config
1 parent d00b97b commit 0644cb3

File tree

4 files changed

+205
-101
lines changed

4 files changed

+205
-101
lines changed

.dockerignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
.gitignore
1414
.pytest_cache
1515
Dockerfile
16-
README.md
1716
build
1817
data
1918
dist

Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ RUN apt update \
1111
&& apt clean \
1212
&& rm -rf /var/lib/apt/lists/*
1313

14-
COPY requirements/ /app/requirements
15-
RUN pip install --no-cache-dir -U pip \
16-
&& pip install --no-cache-dir -r /app/requirements/base.txt \
17-
&& pip install --no-cache-dir -r /app/requirements/cli.txt \
18-
&& pip install --no-cache-dir -r /app/requirements/livechat.txt \
19-
&& pip install --no-cache-dir -r /app/requirements/transcription.txt \
20-
&& if [ "$DEV_BUILD" = "true" ]; then pip install --no-cache-dir -r /app/requirements/dev.txt; fi
21-
2214
COPY . /app/
15+
16+
RUN pip install --no-cache-dir -U --upgrade pip \
17+
&& if [ "$DEV_BUILD" = "true" ]; \
18+
then \
19+
pip install poetry==1.4.2; \
20+
poetry export -f requirements.txt --output requirements.txt --without-hashes --with dev; \
21+
pip install --no-cache-dir -r requirements.txt; \
22+
else pip install /app; fi

0 commit comments

Comments
 (0)