psyflowz commited on
Commit
ee343a2
·
verified ·
1 Parent(s): 5c71955

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -44
Dockerfile CHANGED
@@ -1,75 +1,39 @@
1
- FROM codercom/code-server:latest
2
 
3
  USER root
4
 
5
  RUN apt-get update && apt-get install -y \
6
  sudo \
7
  curl \
8
- wget \
9
  git \
10
- unzip \
11
- zip \
12
- nano \
13
- vim \
14
- htop \
15
- tree \
16
- jq \
17
- ca-certificates \
18
- gnupg \
19
  python3 \
20
  python3-pip \
21
  python3-venv \
22
- python3-dev \
23
  chromium \
24
  chromium-driver \
25
- build-essential \
26
- && apt-get clean \
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
- # Node.js 22
30
- RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
31
- apt-get install -y nodejs && \
32
- apt-get clean
33
 
34
- # Upgrade pip
35
- RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel
36
-
37
- # Python packages
38
  RUN pip3 install --no-cache-dir \
39
  selenium \
40
  webdriver-manager \
41
  fake-useragent \
42
  requests \
43
- aiohttp \
44
  beautifulsoup4 \
45
- lxml \
46
- pandas \
47
- numpy \
48
- flask \
49
- fastapi \
50
- uvicorn \
51
- python-dotenv \
52
- pyyaml \
53
- rich
54
 
55
- # Global npm packages
56
- RUN npm install -g \
57
- yarn \
58
- pnpm \
59
- typescript \
60
- ts-node \
61
- nodemon \
62
- pm2
63
 
64
  ENV CHROME_BIN=/usr/bin/chromium
65
  ENV CHROMEDRIVER=/usr/bin/chromedriver
66
 
67
- RUN mkdir -p /home/coder/project && \
68
- chown -R coder:coder /home/coder/project
69
-
70
  USER coder
71
  WORKDIR /home/coder/project
72
 
73
  EXPOSE 7680
74
 
75
- CMD ["code-server","--bind-addr","0.0.0.0:7680","/home/coder/project"]
 
1
+ FROM codercom/code-server:4.103.2
2
 
3
  USER root
4
 
5
  RUN apt-get update && apt-get install -y \
6
  sudo \
7
  curl \
 
8
  git \
 
 
 
 
 
 
 
 
 
9
  python3 \
10
  python3-pip \
11
  python3-venv \
 
12
  chromium \
13
  chromium-driver \
 
 
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ RUN python3 -m pip install --upgrade pip
 
 
 
17
 
 
 
 
 
18
  RUN pip3 install --no-cache-dir \
19
  selenium \
20
  webdriver-manager \
21
  fake-useragent \
22
  requests \
 
23
  beautifulsoup4 \
24
+ flask
25
+
26
+ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
27
+ apt-get install -y nodejs
 
 
 
 
 
28
 
29
+ RUN npm install -g pnpm yarn
 
 
 
 
 
 
 
30
 
31
  ENV CHROME_BIN=/usr/bin/chromium
32
  ENV CHROMEDRIVER=/usr/bin/chromedriver
33
 
 
 
 
34
  USER coder
35
  WORKDIR /home/coder/project
36
 
37
  EXPOSE 7680
38
 
39
+ CMD ["code-server","--bind-addr","0.0.0.0:7680","--auth","none","/home/coder/project"]