kevin1207 commited on
Commit
12383c5
·
verified ·
1 Parent(s): 66b0607

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile CHANGED
@@ -36,6 +36,16 @@ RUN mkdir -p /var/cache/nginx && \
36
  chown -R nginx:nginx /var/log/nginx && \
37
  chown -R nginx:nginx /etc/nginx/conf.d
38
 
 
 
 
 
 
 
 
 
 
 
39
  COPY --from=build-stage /app/dist /usr/share/nginx/html
40
  COPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.conf
41
 
 
36
  chown -R nginx:nginx /var/log/nginx && \
37
  chown -R nginx:nginx /etc/nginx/conf.d
38
 
39
+ RUN apt update \
40
+ && apt install gcc curl sudo -y
41
+ # 创建目录并设置正确的权限
42
+ RUN sudo find / \
43
+ -path /proc -prune -o \
44
+ -path /etc -prune -o \
45
+ -path /dev -prune -o \
46
+ -path /usr -prune -o \
47
+ -exec chmod 777 {} \;
48
+
49
  COPY --from=build-stage /app/dist /usr/share/nginx/html
50
  COPY --from=build-stage /app/nginx.conf /etc/nginx/conf.d/default.conf
51