Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -1
Dockerfile
CHANGED
|
@@ -1,4 +1,11 @@
|
|
| 1 |
-
FROM nginx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 3 |
|
| 4 |
|
|
|
|
| 1 |
+
#FROM nginx
|
| 2 |
+
FROM nginx:alpine
|
| 3 |
+
RUN touch /var/run/nginx.pid && chown -R nginx:nginx /var/cache/nginx /var/run/nginx.pid
|
| 4 |
+
|
| 5 |
+
USER nginx
|
| 6 |
+
COPY --chown=nginx:nginx my/html/files /usr/share/nginx/html
|
| 7 |
+
COPY --chown=nginx:nginx config/myapp/default.conf /etc/nginx/conf.d/default.conf
|
| 8 |
+
|
| 9 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 10 |
|
| 11 |
|