-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Azure): 🚀 Using Azure's Container App to Deploy
- Loading branch information
Showing
2 changed files
with
29 additions
and
46 deletions.
There are no files selected for viewing
46 changes: 0 additions & 46 deletions
46
.github/workflows/azure-static-web-apps-delightful-smoke-0b894a600.yml
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
ARG NODE_VERSION=20.18.0 | ||
|
||
FROM node:${NODE_VERSION}-slim AS build | ||
|
||
RUN corepack prepare yarn@stable --activate | ||
|
||
WORKDIR /app | ||
|
||
COPY ./package.json /app/ | ||
|
||
COPY ./yarn.lock /app/ | ||
|
||
RUN yarn install | ||
|
||
COPY . ./ | ||
|
||
RUN yarn build | ||
|
||
FROM node:${NODE_VERSION}-slim | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=build /app/.output ./ | ||
|
||
ENV HOST=0.0.0.0 NODE_ENV=production | ||
|
||
EXPOSE 3000 | ||
|
||
CMD ["node","/app/server/index.mjs"] |