koji commited on
Commit
d847b17
·
1 Parent(s): dc3b46a

update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -10
Dockerfile CHANGED
@@ -1,18 +1,12 @@
1
  FROM ubuntu
2
  ENV TZ=Etc/UTC
3
  RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
4
- RUN apt-get update && apt-get install --yes python3 pip pkg-config libsystemd-dev git
5
- RUN apt-get update && \
6
- apt-get upgrade -y
7
 
8
- RUN apt-get install -y wget build-essential libreadline-gplv2-dev libncursesw5-dev \
9
- libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
10
 
11
- RUN wget https://www.python.org/ftp/python/3.7.15/Python-3.7.15.tgz && \
12
- tar -xvf Python-3.7.15.tgz
13
-
14
- RUN ./configure --enable-optimizations && \
15
- make altinstall
16
 
17
  # Set the working directory in the container to /app
18
  WORKDIR /app
 
1
  FROM ubuntu
2
  ENV TZ=Etc/UTC
3
  RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
4
+ RUN apt-get update && apt-get install --yes python3 pip pkg-config libsystemd-dev
 
 
5
 
6
+ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.7
 
7
 
8
+ # Set python3.7 as the default python
9
+ RUN update-alternatives --set python /usr/bin/python3.7
 
 
 
10
 
11
  # Set the working directory in the container to /app
12
  WORKDIR /app