20 lines
654 B
Docker
20 lines
654 B
Docker
# Lightweight Alpine Nginx for Opal iOS Web App
|
|
ARG NGINX_IMAGE=nginx:alpine
|
|
FROM ${NGINX_IMAGE}
|
|
|
|
# Remove default nginx static assets
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
|
|
# Copy custom nginx configuration
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Publish web assets only. Backend source, tests and local configuration are not static downloads.
|
|
COPY index.html app.js workspace.js style.css sw.js manifest.json favicon.svg gt_full_catalog.json /usr/share/nginx/html/
|
|
COPY assets/ /usr/share/nginx/html/assets/
|
|
COPY data/ /usr/share/nginx/html/data/
|
|
|
|
# Expose port 80 for Coolify Traefik reverse proxy
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|