x-undefined-2 commited on
Commit
17385c5
verified
1 Parent(s): ed5c73a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -2,7 +2,9 @@ FROM ubuntu:22.04
2
 
3
  RUN useradd -m -u 1000 user
4
 
5
- RUN apt install -y openssl
 
 
6
 
7
  RUN openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 30 -out cert.pem -subj "/CN=localhost"
8
 
 
2
 
3
  RUN useradd -m -u 1000 user
4
 
5
+ # 淇敼鏂规硶
6
+ RUN sed -i 's#http://archive.ubuntu.com/#http://mirrors.tuna.tsinghua.edu.cn/#' /etc/apt/sources.list;
7
+ RUN apt-get update && apt-get install -y openssl
8
 
9
  RUN openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 30 -out cert.pem -subj "/CN=localhost"
10