forked from dflook/python-minifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-fedora30
More file actions
85 lines (65 loc) · 1.61 KB
/
Dockerfile-fedora30
File metadata and controls
85 lines (65 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM fedora:30 AS base
# CircleCI required tools
RUN dnf install -y \
git \
openssh \
tar \
gzip \
gpg \
ca-certificates \
&& dnf clean all && rm -rf /var/cache/dnf/*
# Other packages required for tests
RUN dnf install -y \
bzip2 \
&& dnf clean all && rm -rf /var/cache/dnf/*
RUN pip3 install tox==3.11.1 virtualenv==16.6.0
WORKDIR /tmp/work
ENTRYPOINT ["/bin/bash"]
##
FROM base AS python2.7
RUN dnf install -y \
python27 \
python2-test \
python2-pip \
&& dnf clean all && rm -rf /var/cache/dnf/*
##
FROM base AS python3.4
RUN dnf install -y \
python34 \
&& dnf clean all && rm -rf /var/cache/dnf/* \
&& curl https://bootstrap.pypa.io/pip/3.4/get-pip.py | python3.4
##
FROM base AS python3.5
RUN dnf install -y \
python35 \
&& dnf clean all && rm -rf /var/cache/dnf/* \
&& curl https://bootstrap.pypa.io/pip/3.5/get-pip.py | python3.5
##
FROM base AS python3.6
RUN dnf install -y \
python36 \
&& dnf clean all && rm -rf /var/cache/dnf/* \
&& curl https://bootstrap.pypa.io/pip/3.6/get-pip.py | python3.6
##
FROM base AS python3.7
RUN dnf install -y \
python37 \
python3-test \
python3-pip \
&& dnf clean all && rm -rf /var/cache/dnf/*
##
FROM base AS python3.8
RUN dnf install -y \
python38 \
&& dnf clean all && rm -rf /var/cache/dnf/* \
&& curl https://bootstrap.pypa.io/get-pip.py | python3.8
##
FROM base AS pypy
RUN dnf install -y \
pypy \
&& dnf clean all && rm -rf /var/cache/dnf/*
##
FROM base AS pypy3
RUN dnf install -y \
pypy3 \
&& dnf clean all && rm -rf /var/cache/dnf/*