Refactor Docker setup and enhance PWA features with service worker, caching, and manifest updates

This commit is contained in:
MayaChat
2025-11-24 13:41:08 -05:00
parent 781346e757
commit 734c9dc70c
8 changed files with 188 additions and 9 deletions

View File

@@ -1,5 +1,19 @@
FROM nginx:alpine
LABEL maintainer="services-homepage"
COPY . /usr/share/nginx/html
# Copy all static files into the image
COPY index.html /usr/share/nginx/html/
COPY styles.css /usr/share/nginx/html/
COPY manifest.json /usr/share/nginx/html/
COPY sw.js /usr/share/nginx/html/
COPY README.md /usr/share/nginx/html/
COPY FAQ.md /usr/share/nginx/html/
COPY logos/ /usr/share/nginx/html/logos/
COPY js/ /usr/share/nginx/html/js/
COPY nginx.conf /etc/nginx/nginx.conf
# Expose port 80
EXPOSE 80
# services.xml will be mounted at runtime as a bind mount
CMD ["nginx", "-g", "daemon off;"]