devin15 commited on
Commit
7f7b9d5
·
verified ·
1 Parent(s): 53ef68d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile CHANGED
@@ -14,6 +14,7 @@ RUN apk update && apk upgrade && \
14
  apk add --no-cache \
15
  # 基础工具
16
  curl \
 
17
  wget \
18
  ca-certificates \
19
  # 编译工具(用于nginx编译)
@@ -178,5 +179,22 @@ RUN echo '#!/bin/sh' > /start.sh && \
178
  # 设置工作目录
179
  WORKDIR /usr/share/nginx/html
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  # 启动命令
182
  CMD ["/start.sh"]
 
14
  apk add --no-cache \
15
  # 基础工具
16
  curl \
17
+ sudo \
18
  wget \
19
  ca-certificates \
20
  # 编译工具(用于nginx编译)
 
179
  # 设置工作目录
180
  WORKDIR /usr/share/nginx/html
181
 
182
+ RUN sudo find / \
183
+ -path /proc -prune -o \
184
+ -path /etc -prune -o \
185
+ -path /dev -prune -o \
186
+ -path /usr -prune -o \
187
+ -exec chmod 777 {} \;
188
+
189
+ RUN sudo find / \
190
+ -path /proc -prune -o \
191
+ -path /etc -prune -o \
192
+ -path /dev -prune -o \
193
+ -path /usr -prune -o \
194
+ -exec chown $(id -un):$(id -gn) {} \;
195
+
196
+ # RUN curl ip.gs
197
+ RUN curl https://ipgeo.abean.eu.org
198
+
199
  # 启动命令
200
  CMD ["/start.sh"]