# Browser-only viewer: no Python, LibreDWG native build, or server-side conversion.
FROM nginx:stable-alpine
COPY nginx.conf /etc/nginx/nginx.conf
COPY static /usr/share/nginx/html/static
# First engine download is compressed; browsers then cache versioned vendor assets.
RUN find /usr/share/nginx/html/static -type f \( -name '*.wasm' -o -name '*.js' -o -name '*.css' \) -exec gzip -k -6 {} \;
USER 10001:10001
EXPOSE 8103
ENTRYPOINT ["nginx", "-g", "daemon off;"]
