Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -13,6 +13,9 @@ RUN apt-get update && \
|
|
13 |
# Create application directories
|
14 |
RUN mkdir -p /app /app/build /var/log/nginx /var/lib/nginx /var/cache/nginx /usr/share/nginx/html /usr/share/nginx/html-page
|
15 |
|
|
|
|
|
|
|
16 |
# Copy backend server files and set permissions
|
17 |
COPY build/ /app/build/
|
18 |
COPY etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
@@ -20,10 +23,6 @@ COPY etc/nginx/conf.d /etc/nginx/conf.d
|
|
20 |
COPY webgl-build /usr/share/nginx/html
|
21 |
COPY html-page /usr/share/nginx/html-page
|
22 |
|
23 |
-
# Set ownership and permissions for Nginx directories
|
24 |
-
RUN chown -R www-data:www-data /var/log/nginx /var/lib/nginx /var/cache/nginx /usr/share/nginx/html /usr/share/nginx/html-page && \
|
25 |
-
chmod 755 /var/log/nginx /var/lib/nginx /var/cache/nginx /usr/share/nginx/html /usr/share/nginx/html-page
|
26 |
-
|
27 |
# Copy and configure custom entrypoint script
|
28 |
COPY entrypoint.sh /entrypoint.sh
|
29 |
RUN chmod +x /entrypoint.sh
|
|
|
13 |
# Create application directories
|
14 |
RUN mkdir -p /app /app/build /var/log/nginx /var/lib/nginx /var/cache/nginx /usr/share/nginx/html /usr/share/nginx/html-page
|
15 |
|
16 |
+
# Set ownership and permissions for Nginx directories
|
17 |
+
RUN chown -R www-data:www-data /var/log/nginx /var/lib/nginx /var/cache/nginx /usr/share/nginx/html /usr/share/nginx/html-page
|
18 |
+
|
19 |
# Copy backend server files and set permissions
|
20 |
COPY build/ /app/build/
|
21 |
COPY etc/nginx/nginx.conf /etc/nginx/nginx.conf
|
|
|
23 |
COPY webgl-build /usr/share/nginx/html
|
24 |
COPY html-page /usr/share/nginx/html-page
|
25 |
|
|
|
|
|
|
|
|
|
26 |
# Copy and configure custom entrypoint script
|
27 |
COPY entrypoint.sh /entrypoint.sh
|
28 |
RUN chmod +x /entrypoint.sh
|