Skip to content

Commit

Permalink
chore(Azure): 🚀 Using Azure's Container App to Deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
bKoZii committed Oct 12, 2024
1 parent 7f5db7b commit 2650730
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 46 deletions.

This file was deleted.

29 changes: 29 additions & 0 deletions Dockerfile
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"]

0 comments on commit 2650730

Please sign in to comment.