ar08 commited on
Commit
2cec963
·
verified ·
1 Parent(s): 9c58302

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
- # Use Ubuntu as the base image
2
- FROM ubuntu:latest
3
 
4
  # Set environment variables
5
  ENV DEBIAN_FRONTEND=noninteractive
@@ -15,12 +15,6 @@ RUN apt-get update && \
15
  g++ \
16
  gcc
17
 
18
- # Install Python 3.11
19
- RUN sudo apt install software-properties-common -y && \
20
- sudo add-apt-repository ppa:deadsnakes/ppa && \
21
- sudo apt-get update -y && \
22
- sudo apt-get install -y python3.11
23
-
24
  # Install code-server
25
  RUN curl -fsSL https://code-server.dev/install.sh | sh
26
 
@@ -36,3 +30,5 @@ USER coder
36
 
37
  # Start code-server
38
  CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]
 
 
 
1
+ # Use Python 3.9 as the base image
2
+ FROM python:3.9
3
 
4
  # Set environment variables
5
  ENV DEBIAN_FRONTEND=noninteractive
 
15
  g++ \
16
  gcc
17
 
 
 
 
 
 
 
18
  # Install code-server
19
  RUN curl -fsSL https://code-server.dev/install.sh | sh
20
 
 
30
 
31
  # Start code-server
32
  CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]
33
+
34
+ # End of Dockerfile