Skip to content

Commit 42ef87b

Browse files
Merge pull request #235 from NHSDigital/mesh-2092-use-poetry-in-dockerfile
Mesh 2092 use poetry in dockerfile
2 parents c0028c9 + 44910ca commit 42ef87b

3 files changed

Lines changed: 4 additions & 538 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ FROM python:3.11-slim-bullseye@sha256:53ebfd268fe58ccd405688b3305a7dcad5da03f5e3
22

33
WORKDIR /app
44

5-
COPY ./requirements.txt /requirements.txt
5+
COPY pyproject.toml poetry.lock /app/
66

77
RUN apt-get update \
88
&& apt-get install curl -yq --no-install-recommends \
99
&& apt-get clean \
1010
&& rm -rf /var/lib/apt/lists/* \
11-
&& pip install --no-cache-dir --upgrade -r /requirements.txt \
11+
&& pip install --no-cache-dir poetry \
12+
&& poetry config virtualenvs.create false \
13+
&& poetry install --no-interaction --no-ansi --no-root \
1214
&& mkdir -p /tmp/mesh_store
1315

1416

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,3 @@ check-secrets:
140140

141141
check-secrets-all:
142142
scripts/check-secrets.sh unstaged
143-
144-
export-requirements:
145-
poetry export --only main -f requirements.txt --output ./requirements.txt

0 commit comments

Comments
 (0)