Publish curated ITWorx-ModelForge source from 990401737f96c8d46a9f7b0d84994516cadcb6a0

This commit is contained in:
Public Source Publisher committed 2026-09-30 09:23:17 +00:00
1 parent 7082ab955a
commit 848f0d8f8a
434 files changed
+67298 -4315

No files matched your search

+8 -2
View File
@@ -12,7 +12,13 @@ COPY . .
# Vite inlines its VITE_* variables at build time, so the API base URL is a build argument rather
# than a runtime one. The default matches the standard local deployment.
ARG VITE_API_BASE_URL=http://localhost:8000
ARG MODELFORGE_VERSION=0.0.0
ARG MODELFORGE_COMMIT=""
ARG MODELFORGE_BUILT_AT=""
ENV VITE_API_BASE_URL=${VITE_API_BASE_URL}
ENV MODELFORGE_VERSION=${MODELFORGE_VERSION}
ENV MODELFORGE_COMMIT=${MODELFORGE_COMMIT}
ENV MODELFORGE_BUILT_AT=${MODELFORGE_BUILT_AT}
RUN npm run build
FROM nginxinc/nginx-unprivileged:1.29-alpine@sha256:0c79d56aee561a1d81c63f00eee5fb5fe29279560cdc55e91425133104c7fbe6
@@ -29,7 +35,7 @@ LABEL org.opencontainers.image.description="Operator console for the ITWorx Mode
LABEL org.opencontainers.image.version="${MODELFORGE_VERSION}"
LABEL org.opencontainers.image.revision="${MODELFORGE_COMMIT}"
LABEL org.opencontainers.image.created="${MODELFORGE_BUILT_AT}"
LABEL org.opencontainers.image.source="https://git.example.com/example/modelforge.git"
LABEL org.opencontainers.image.source="https://git.example.com/example/modelforge"
LABEL org.opencontainers.image.vendor="ITWorx"
LABEL org.opencontainers.image.licenses="AGPL-3.0-or-later"
@@ -49,7 +55,7 @@ RUN set -eu; \
sed "s|__API_ORIGIN__|${API_ORIGIN}|" /etc/nginx/security-headers.inc.template \
> /etc/nginx/conf.d/security-headers.inc; \
rm /etc/nginx/security-headers.inc.template; \
grep -q "connect-src 'self' ${API_ORIGIN};" /etc/nginx/conf.d/security-headers.inc
grep -q "connect-src ${API_ORIGIN};" /etc/nginx/conf.d/security-headers.inc
USER nginx
EXPOSE 3000