-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created separate logic for stage and prod branches in github actions and
kustomizations
- Loading branch information
Spencer Smolen
committed
Mar 19, 2024
1 parent
061f60e
commit 8cd0380
Showing
5 changed files
with
94 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
FROM node:20-alpine as build | ||
FROM node:20-alpine | ||
WORKDIR /app | ||
COPY . . | ||
ADD . . | ||
RUN yarn install | ||
CMD ["yarn", "dev"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM node:20-alpine as build-deps | ||
WORKDIR /app | ||
COPY package.json package-lock.json . | ||
RUN npm install | ||
|
||
FROM node:20-alpine as build-app | ||
WORKDIR /app | ||
COPY --from=build-deps /app/ . | ||
COPY . . | ||
RUN npx vite build -d | ||
|
||
|
||
FROM nginx:alpine as final | ||
COPY --from=build-app /app/dist /var/www/html/ | ||
COPY <<EOF /etc/nginx/conf.d/console.conf | ||
server { | ||
listen 3000; | ||
root /var/www/html; | ||
|
||
location / { | ||
} | ||
} | ||
EOF | ||
|
||
EXPOSE 3000 | ||
CMD ["nginx","-g","daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters