Skip to content

Commit bff2931

Browse files
committed
Add python3.9 and change apt-get command.
1 parent c33fde8 commit bff2931

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

Dockerfile

+19-12
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,36 @@
33
FROM ubuntu:18.04
44
MAINTAINER Shohei Mukai
55

6-
RUN apt-get update
7-
RUN apt-get -y install apache2
6+
ENV DEBIAN_FRONTEND=noninteractive
7+
8+
RUN apt update
9+
RUN apt -y install apache2
810

911
# Python2.7
10-
RUN apt-get -y install python2.7
11-
RUN apt-get -y install libmysqlclient-dev
12-
RUN apt-get -y install vim
13-
RUN apt-get -y install python-pip
12+
RUN apt -y install python2.7
13+
RUN apt -y install libmysqlclient-dev
14+
RUN apt -y install vim
15+
RUN apt -y install python-pip
1416

1517
# Python3.6
16-
RUN apt-get -y install python3.6
17-
RUN apt-get -y install python3.6-dev python3-distutils
18-
RUN apt-get -y install wget
18+
RUN apt -y install python3.6
19+
RUN apt -y install python3.6-dev python3-distutils
20+
RUN apt -y install wget
1921
RUN wget https://bootstrap.pypa.io/get-pip.py
2022
RUN python3.6 get-pip.py
2123

2224
# Python3.7
23-
RUN apt-get -y install python3.7
24-
RUN apt-get -y install python3.7-dev
25+
RUN apt -y install python3.7
26+
RUN apt -y install python3.7-dev
2527
RUN python3.7 get-pip.py
2628

2729
# Python3.8
28-
RUN apt-get -y install python3.8
30+
RUN apt -y install python3.8
31+
32+
# Python3.9
33+
RUN apt -y install software-properties-common
34+
RUN add-apt-repository ppa:deadsnakes/ppa
35+
RUN apt -y install python3.9
2936

3037
# Http settings
3138
ENV APACHE_RUN_USER www-data

0 commit comments

Comments
 (0)