Xiao commited on
Commit
eaa04f2
·
1 Parent(s): 204e4c7

change user permission

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -4
  2. docker-compose.yaml +3 -3
Dockerfile CHANGED
@@ -96,10 +96,6 @@ FROM lean AS prod
96
 
97
 
98
 
99
- # Copy config nginx
100
- # COPY --chown=luminlab:luminlab --from=dev /var/cache/nginx /var/cache/nginx
101
- # COPY --chown=luminlab:luminlab --from=dev /var/log/nginx /var/log/nginx
102
- # COPY --chown=luminlab:luminlab --from=dev /var/lib/nginx /var/lib/nginx
103
 
104
  COPY --chown=luminlab --from=node /app ./app
105
  # Remove default nginx static assets
@@ -110,6 +106,11 @@ COPY --chown=luminlab --from=node /app ./app
110
 
111
  WORKDIR /app
112
 
 
 
 
 
 
113
 
114
 
115
  # Copy static assets from builder stage
 
96
 
97
 
98
 
 
 
 
 
99
 
100
  COPY --chown=luminlab --from=node /app ./app
101
  # Remove default nginx static assets
 
106
 
107
  WORKDIR /app
108
 
109
+ COPY --chown=luminlab ./run_hf.sh /app/run_hf.sh
110
+ RUN chmod 777 /app/run_hf.sh
111
+
112
+
113
+
114
 
115
 
116
  # Copy static assets from builder stage
docker-compose.yaml CHANGED
@@ -12,8 +12,8 @@ services:
12
  ports:
13
  - "80:3000"
14
  - "3000:3000"
15
- volumes:
16
- - ./run_hf.sh:/app/run_hf.sh
17
- - .nginx/nginx.conf:/etc/nginx/nginx.conf
18
 
19
 
 
12
  ports:
13
  - "80:3000"
14
  - "3000:3000"
15
+ # volumes:
16
+ # - ./run_hf.sh:/app/run_hf.sh
17
+ # - .nginx/nginx.conf:/etc/nginx/nginx.conf
18
 
19