Skip to content

Commit e9fe6b6

Browse files
committed
Change Docker image base to python:3-alpine
Replace the installation of s3cmd via "pip install" to the version in the Alpine repository.
1 parent 1772c38 commit e9fe6b6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: Dockerfile

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
FROM alpine:3.15
1+
FROM python:3-alpine
22

3+
# Current version of s3cmd is in edge/testing repo
4+
RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
5+
6+
# Install everything via repo because repo & pip installs can break things
37
RUN apk update \
48
&& apk add --no-cache \
59
bash \
610
postgresql12-client \
7-
python3 py-pip \
8-
&& pip install s3cmd python-magic
11+
py3-magic \
12+
py3-dateutil \
13+
s3cmd
914

1015
COPY application/ /data/
1116
WORKDIR /data

0 commit comments

Comments
 (0)