x-undefined-2 commited on
Commit
72989d3
·
verified ·
1 Parent(s): d95088c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -4,19 +4,17 @@ FROM ubuntu:24.04
4
  RUN sed -i 's#http://archive.ubuntu.com/#http://mirrors.tuna.tsinghua.edu.cn/#' /etc/apt/sources.list;
5
  RUN apt-get update && apt-get install -y openssl nodejs npm
6
 
7
- RUN useradd -m -u 1004 user
8
-
9
  RUN openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 30 -out cert.pem -subj "/CN=localhost"
10
 
11
- ENV HOME=/home/user \
12
- PATH=/home/user/.local/bin:$PATH
13
 
14
  WORKDIR $HOME/socks-server
15
  RUN mkdir ./.wrangler
16
  COPY . .
17
  RUN tar -zxf ./node-v20.15.0-linux-x64.tar.gz
18
 
19
- RUN chown -R 1000:1000 ./
20
  RUN chmod +x ./entrypoint.sh
21
 
22
  EXPOSE 8787
 
4
  RUN sed -i 's#http://archive.ubuntu.com/#http://mirrors.tuna.tsinghua.edu.cn/#' /etc/apt/sources.list;
5
  RUN apt-get update && apt-get install -y openssl nodejs npm
6
 
 
 
7
  RUN openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 30 -out cert.pem -subj "/CN=localhost"
8
 
9
+ ENV HOME=/home/ubuntu \
10
+ PATH=/home/ubuntu/.local/bin:$PATH
11
 
12
  WORKDIR $HOME/socks-server
13
  RUN mkdir ./.wrangler
14
  COPY . .
15
  RUN tar -zxf ./node-v20.15.0-linux-x64.tar.gz
16
 
17
+ RUN chown -R ubuntu:ubuntu ./
18
  RUN chmod +x ./entrypoint.sh
19
 
20
  EXPOSE 8787