reduce overhead of dockerfile

This commit is contained in:
jona.klaess
2026-06-08 15:41:29 +02:00
parent a1be0e668d
commit c19fc98d01
2 changed files with 19 additions and 10 deletions

View File

@@ -1,13 +1,5 @@
# build stage
FROM node:lts-alpine as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage # production stage
FROM nginx:stable-alpine as production-stage FROM nginx:stable-alpine
COPY --from=build-stage /app/dist/spa/ /usr/share/nginx/html COPY ./dist/spa/ /usr/share/nginx/html
EXPOSE 80 EXPOSE 80
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

17
src/global-env.d.ts vendored Normal file
View File

@@ -0,0 +1,17 @@
export {};
declare global {
interface Window {
__ENV__: {
VITE_API_URL: string;
ENVIRONMENT?: string;
DEBUG_MODE?: string;
URL_KEYCLOAK: string;
KEYCLOAK_REALM: string;
KEYCLOAK_CLIENT_ID: string;
URL_FRONTEND: string;
URL_BACKEND: string;
[key: string]: string | undefined;
};
}
}