Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -6
Dockerfile
CHANGED
@@ -17,12 +17,11 @@ COPY etc/nginx/conf.d /etc/nginx/conf.d
|
|
17 |
COPY webgl-build /usr/share/nginx/html
|
18 |
COPY html-page /usr/share/nginx/html-page
|
19 |
|
20 |
-
#
|
21 |
-
RUN
|
22 |
-
mkdir -p /
|
23 |
-
|
24 |
-
|
25 |
-
chmod 755 /var/log/nginx /var/lib/nginx /var/cache/nginx /var/lib/nginx/body /var/lib/nginx/proxy
|
26 |
|
27 |
# Copy and configure custom entrypoint script
|
28 |
COPY entrypoint.sh /entrypoint.sh
|
|
|
17 |
COPY webgl-build /usr/share/nginx/html
|
18 |
COPY html-page /usr/share/nginx/html-page
|
19 |
|
20 |
+
# Create necessary directories for Nginx and set permissions
|
21 |
+
RUN mkdir -p /app/logs && \
|
22 |
+
mkdir -p /var/log/nginx /var/lib/nginx /var/cache/nginx /var/lib/nginx/body /var/lib/nginx/fastcgi && \
|
23 |
+
chown -R www-data:www-data /var/log/nginx /var/lib/nginx /var/cache/nginx /app /usr/share/nginx/html /usr/share/nginx/html-page && \
|
24 |
+
chmod 755 /var/log/nginx /var/lib/nginx /var/cache/nginx /var/lib/nginx/body /var/lib/nginx/fastcgi
|
|
|
25 |
|
26 |
# Copy and configure custom entrypoint script
|
27 |
COPY entrypoint.sh /entrypoint.sh
|