reduce overhead of dockerfile
This commit is contained in:
12
Dockerfile
12
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;"]
|
||||
|
||||
17
src/global-env.d.ts
vendored
Normal file
17
src/global-env.d.ts
vendored
Normal 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;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user