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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -4,7 +4,7 @@ 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 1000 user
8
 
9
  RUN openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 30 -out cert.pem -subj "/CN=localhost"
10
 
@@ -16,7 +16,7 @@ RUN mkdir ./.wrangler
16
  COPY . .
17
  RUN tar -zxf ./node-v20.15.0-linux-x64.tar.gz
18
 
19
- RUN chown -R user ./
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 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
 
 
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