Refactor Docker setup and enhance PWA features with service worker, caching, and manifest updates
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -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;"]
|
||||
|
||||
Reference in New Issue
Block a user