psyflowz commited on
Commit
89e36bb
·
verified ·
1 Parent(s): 4f2713a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -20
Dockerfile CHANGED
@@ -2,7 +2,7 @@ FROM codercom/code-server:latest
2
 
3
  USER root
4
 
5
- # Update and install packages
6
  RUN apt-get update && apt-get install -y \
7
  sudo \
8
  curl \
@@ -16,10 +16,7 @@ RUN apt-get update && apt-get install -y \
16
  tree \
17
  jq \
18
  ca-certificates \
19
- software-properties-common \
20
- apt-transport-https \
21
  gnupg \
22
- lsb-release \
23
  build-essential \
24
  gcc \
25
  g++ \
@@ -29,21 +26,24 @@ RUN apt-get update && apt-get install -y \
29
  python3-pip \
30
  python3-venv \
31
  python3-dev \
32
- openjdk-21-jdk \
33
  chromium \
34
  chromium-driver \
35
  firefox-esr \
 
36
  xdg-utils \
37
  net-tools \
38
  iputils-ping \
39
  dnsutils \
40
- ffmpeg \
41
- docker.io \
42
- && apt-get clean \
 
 
43
  && rm -rf /var/lib/apt/lists/*
44
 
45
- # Install latest Node.js (22.x)
46
  RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
 
47
  apt-get install -y nodejs
48
 
49
  # Upgrade pip
@@ -66,18 +66,16 @@ RUN pip3 install --no-cache-dir \
66
  jupyter \
67
  notebook \
68
  playwright \
69
- pyautogui \
70
  pillow \
71
  rich \
72
  python-dotenv \
73
  pyyaml
74
 
75
- # Install Playwright browsers
76
  RUN playwright install chromium
77
 
78
  # Install global npm packages
79
  RUN npm install -g \
80
- npm \
81
  yarn \
82
  pnpm \
83
  typescript \
@@ -89,13 +87,9 @@ RUN npm install -g \
89
  vite \
90
  create-vite
91
 
92
- # Install VS Code extensions
93
- RUN code-server --install-extension ms-python.python && \
94
- code-server --install-extension ms-python.vscode-pylance && \
95
- code-server --install-extension ms-azuretools.vscode-docker && \
96
- code-server --install-extension dbaeumer.vscode-eslint && \
97
- code-server --install-extension esbenp.prettier-vscode && \
98
- code-server --install-extension ms-vscode.vscode-typescript-next
99
 
100
  # Create workspace
101
  RUN mkdir -p /home/coder/project && \
@@ -104,6 +98,7 @@ RUN mkdir -p /home/coder/project && \
104
  USER coder
105
  WORKDIR /home/coder/project
106
 
107
- EXPOSE 8080
 
108
 
109
  CMD ["code-server", "--bind-addr", "0.0.0.0:7680", "/home/coder/project"]
 
2
 
3
  USER root
4
 
5
+ # Install system packages
6
  RUN apt-get update && apt-get install -y \
7
  sudo \
8
  curl \
 
16
  tree \
17
  jq \
18
  ca-certificates \
 
 
19
  gnupg \
 
20
  build-essential \
21
  gcc \
22
  g++ \
 
26
  python3-pip \
27
  python3-venv \
28
  python3-dev \
 
29
  chromium \
30
  chromium-driver \
31
  firefox-esr \
32
+ ffmpeg \
33
  xdg-utils \
34
  net-tools \
35
  iputils-ping \
36
  dnsutils \
37
+ openssh-client \
38
+ procps \
39
+ rsync \
40
+ sqlite3 \
41
+ openjdk-21-jdk \
42
  && rm -rf /var/lib/apt/lists/*
43
 
44
+ # Install Node.js 22
45
  RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
46
+ apt-get update && \
47
  apt-get install -y nodejs
48
 
49
  # Upgrade pip
 
66
  jupyter \
67
  notebook \
68
  playwright \
 
69
  pillow \
70
  rich \
71
  python-dotenv \
72
  pyyaml
73
 
74
+ # Install Playwright browser
75
  RUN playwright install chromium
76
 
77
  # Install global npm packages
78
  RUN npm install -g \
 
79
  yarn \
80
  pnpm \
81
  typescript \
 
87
  vite \
88
  create-vite
89
 
90
+ # Environment variables for Selenium
91
+ ENV CHROME_BIN=/usr/bin/chromium
92
+ ENV CHROMEDRIVER=/usr/bin/chromedriver
 
 
 
 
93
 
94
  # Create workspace
95
  RUN mkdir -p /home/coder/project && \
 
98
  USER coder
99
  WORKDIR /home/coder/project
100
 
101
+ # Expose code-server on port 7680
102
+ EXPOSE 7680
103
 
104
  CMD ["code-server", "--bind-addr", "0.0.0.0:7680", "/home/coder/project"]