Skip to content

Commit 82b463c

Browse files
Update Dockerfile to handle assets directory
Create assets directory and copy files into it.
1 parent e1cd5c8 commit 82b463c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

frontend/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ COPY index.html /usr/share/nginx/html/
1111
COPY pages /usr/share/nginx/html/pages
1212
COPY css /usr/share/nginx/html/css
1313
COPY js /usr/share/nginx/html/js
14-
COPY assets /usr/share/nginx/html/assets
14+
15+
RUN mkdir -p /usr/share/nginx/html/assets
16+
COPY assets/* /usr/share/nginx/html/assets/ 2>/dev/null || true
1517

1618
# Fix permissions
1719
RUN chown -R nginx:nginx /usr/share/nginx/html && \
@@ -34,4 +36,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
3436
EXPOSE 80
3537

3638
# Start nginx in foreground
37-
CMD ["nginx", "-g", "daemon off;"]
39+
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)