Skip to content

Commit

Permalink
Update vite-envs and configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoLaval committed Dec 7, 2024
1 parent cdf73e7 commit 4886956
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 15 deletions.
18 changes: 18 additions & 0 deletions app/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
node_modules

dist

.git
.gitignore

.env.local

# IDE settings
.idea
.vscode

yarn-error.log*

# Operating system files
.DS_Store
Thumbs.db
2 changes: 1 addition & 1 deletion app/.kubernetes/Service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ spec:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer
type: ClusterIP
7 changes: 3 additions & 4 deletions app/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# build environment
FROM node:20-alpine AS build
FROM node:20-alpine as build
WORKDIR /app
COPY package.json yarn.lock .env ./
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn install --frozen-lockfile
RUN yarn build

# production environment
FROM nginx:stable-alpine
COPY --from=build /app/nginx.conf /etc/nginx/conf.d/default.conf
WORKDIR /usr/share/nginx/html
COPY --from=build /app/dist .
ENTRYPOINT sh -c "./vite-envs.sh && nginx -g 'daemon off;"
ENTRYPOINT sh -c "./vite-envs.sh && nginx -g 'daemon off;'"
4 changes: 2 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"globals": "^15.12.0",
"prettier": "^3.4.2",
"tsafe": "^1.8.5",
"typescript": "~5.6.2",
"typescript": "~5.7.2",
"typescript-eslint": "^8.15.0",
"vite": "^6.0.1",
"vite-envs": "^4.4.6",
"vite-envs": "^4.4.10",
"vite-tsconfig-paths": "^5.1.3"
}
}
16 changes: 8 additions & 8 deletions app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1993,10 +1993,10 @@ typescript-eslint@^8.15.0:
"@typescript-eslint/parser" "8.17.0"
"@typescript-eslint/utils" "8.17.0"

typescript@~5.6.2:
version "5.6.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
typescript@~5.7.2:
version "5.7.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==

update-browserslist-db@^1.1.1:
version "1.1.1"
Expand All @@ -2013,10 +2013,10 @@ uri-js@^4.2.2:
dependencies:
punycode "^2.1.0"

vite-envs@^4.4.6:
version "4.4.6"
resolved "https://registry.yarnpkg.com/vite-envs/-/vite-envs-4.4.6.tgz#b86fe970848021a4d9e3a97e983d14b1dd6c97ea"
integrity sha512-5FZSpN+SdWTEQEw9S64RXwSaz4P7MX04gt1cZ58Z2YmQokRhhz+/47+bPIJg8a6HxFM+84WpRxsk8CAkQMCZJw==
vite-envs@^4.4.10:
version "4.4.10"
resolved "https://registry.yarnpkg.com/vite-envs/-/vite-envs-4.4.10.tgz#ded3d2669585efe09fe4f0b9960fad271435bb16"
integrity sha512-x2Cbud8UCIz6fO3d8e3UGot7QxXXctA6ULyzTMcn3jZkS+uedo374P/delh3lUHCnuY1Dw2MLfOcFrRzBcaFwA==

vite-tsconfig-paths@^5.1.3:
version "5.1.4"
Expand Down

0 comments on commit 4886956

Please sign in to comment.