Skip to content

Commit 3aa57e0

Browse files
committed
Refactor Dockerfile to improve readability of Poetry installation command
1 parent 708197e commit 3aa57e0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lambdas/mock_pds/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ RUN mkdir -p /home/appuser && \
77
echo 'appuser:x:1001:1001::/home/appuser:/sbin/nologin' >> /etc/passwd && \
88
echo 'appuser:x:1001:' >> /etc/group && \
99
chown -R 1001:1001 /home/appuser && \
10-
printf 'poetry==2.1.4 --hash=sha256:0019b64d33fed9184a332f7fad60ca47aace4d6a0e9c635cdea21b76e96f32ce\n' > /tmp/poetry-requirements.txt && \
10+
printf '%s %s\n' \
11+
'poetry==2.1.4' \
12+
'--hash=sha256:0019b64d33fed9184a332f7fad60ca47aace4d6a0e9c635cdea21b76e96f32ce' \
13+
> /tmp/poetry-requirements.txt && \
1114
pip install --only-binary :all: --require-hashes -r /tmp/poetry-requirements.txt && \
1215
rm -f /tmp/poetry-requirements.txt
1316

0 commit comments

Comments
 (0)