Skip to content

Commit 5eac2c7

Browse files
authored
Merge pull request #18 from silinternational/dockerfile-fix
Fix for Python 3.12.3 constrained
2 parents 86f6543 + 08322a9 commit 5eac2c7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Dockerfile

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# With Python 3.12.4 on Alpine 3.20, s3cmd 2.4.0 fails with an AttributeError.
22
# See ITSE-1440 for details.
3-
FROM python:3.12.3-alpine
3+
FROM python:3.12.4-alpine
44

55
# Current version of s3cmd is in edge/testing repo
66
RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
@@ -12,10 +12,15 @@ RUN apk update \
1212
postgresql14-client \
1313
py3-magic \
1414
py3-dateutil \
15-
s3cmd \
1615
curl \
17-
jq
18-
16+
jq
17+
18+
RUN wget https://github.com/s3tools/s3cmd/archive/refs/tags/v2.4.0.tar.gz \
19+
&& tar xzf v2.4.0.tar.gz \
20+
&& cd s3cmd-2.4.0 \
21+
&& python setup.py install \
22+
&& cd .. \
23+
&& rm -rf s3cmd-2.4.0 v2.4.0.tar.gz
1924
# Install sentry-cli
2025
RUN curl -sL https://sentry.io/get-cli/ | bash
2126

0 commit comments

Comments
 (0)