Spaces:
Paused
Paused
koji commited on
Commit ·
d847b17
1
Parent(s): dc3b46a
update Dockerfile
Browse files- 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
|
| 5 |
-
RUN apt-get update && \
|
| 6 |
-
apt-get upgrade -y
|
| 7 |
|
| 8 |
-
RUN
|
| 9 |
-
libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 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
|