Skip to content

Commit 07d4547

Browse files
authored
Merge pull request #10 from silinternational/feature/upgrade-python-version
Upgrade Dockerfile to use Python3 docker hub image
2 parents bd6d66e + 07a6eab commit 07d4547

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
FROM alpine:3.11
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
mysql-client \
7-
python py-pip \
8-
&& pip install s3cmd python-magic
11+
py3-magic \
12+
py3-dateutil \
13+
py3-six \
14+
s3cmd
915

1016
COPY application/ /data/
1117
WORKDIR /data

0 commit comments

Comments
 (0)