Sudheer07 commited on
Commit
cf323e6
·
verified ·
1 Parent(s): 196a94e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -9,9 +9,12 @@ RUN apt-get update && apt-get upgrade -y
9
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
10
  apt-get install -y nodejs
11
 
12
- # Install Python 3.x and pip
13
- RUN apt-get install -y python3 python3-pip && \
14
- python3 -m pip install --upgrade pip
 
 
 
15
 
16
  # Install dependencies for Playwright
17
  RUN apt-get install -y \
@@ -69,5 +72,5 @@ ENV DOCKER_USER=${USER}
69
  RUN id -u coder &>/dev/null || useradd -ms /bin/bash coder
70
  USER coder
71
 
72
- # Start code-server with no authentication
73
- CMD ["fixuid", "code-server", "--auth", "none", "--host", "0.0.0.0"]
 
9
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
10
  apt-get install -y nodejs
11
 
12
+ # Install Python 3.x and venv
13
+ RUN apt-get install -y python3 python3-venv
14
+
15
+ # Set up a virtual environment for Python
16
+ RUN python3 -m venv /home/coder/venv && \
17
+ /home/coder/venv/bin/pip install --upgrade pip
18
 
19
  # Install dependencies for Playwright
20
  RUN apt-get install -y \
 
72
  RUN id -u coder &>/dev/null || useradd -ms /bin/bash coder
73
  USER coder
74
 
75
+ # Activate the virtual environment and start code-server
76
+ CMD ["fixuid", "/home/coder/venv/bin/code-server", "--auth", "none", "--host", "0.0.0.0"]