Add tenant-scoped Studio backend primitives and static asset allowlist
This commit is contained in:
+6
-4
@@ -1,5 +1,6 @@
|
||||
# Lightweight Alpine Nginx for Opal iOS Web App
|
||||
FROM nginx:alpine
|
||||
ARG NGINX_IMAGE=nginx:alpine
|
||||
FROM ${NGINX_IMAGE}
|
||||
|
||||
# Remove default nginx static assets
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
@@ -7,9 +8,10 @@ RUN rm -rf /usr/share/nginx/html/*
|
||||
# Copy custom nginx configuration
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# Copy all web assets, catalogs, and images
|
||||
COPY . /usr/share/nginx/html/
|
||||
RUN rm -f /usr/share/nginx/html/Dockerfile /usr/share/nginx/html/docker-compose.yml /usr/share/nginx/html/nginx.conf
|
||||
# Publish web assets only. Backend source, tests and local configuration are not static downloads.
|
||||
COPY index.html app.js style.css sw.js manifest.json 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
|
||||
|
||||
Reference in New Issue
Block a user