diff --git a/Dockerfile b/Dockerfile index 86b97b2..e8a6423 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 -FROM nginx:stable-alpine as production-stage -COPY --from=build-stage /app/dist/spa/ /usr/share/nginx/html +FROM nginx:stable-alpine +COPY ./dist/spa/ /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] diff --git a/src/global-env.d.ts b/src/global-env.d.ts new file mode 100644 index 0000000..3d7c66e --- /dev/null +++ b/src/global-env.d.ts @@ -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; + }; + } +} \ No newline at end of file