-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add] Health Check configuration of Docker services [add] Entry Badge of GitHub codespaces & GitPod.io [optimize] update Upstream packages
- Loading branch information
Showing
5 changed files
with
378 additions
and
281 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
FROM node:18-slim | ||
FROM node:18-slim AS base | ||
RUN apt-get update && \ | ||
apt-get install curl -y --no-install-recommends | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
USER root | ||
FROM base AS prod-deps | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile | ||
|
||
RUN npm rm yarn -g | ||
RUN npm i pnpm -g | ||
|
||
RUN mkdir /home/node/app | ||
WORKDIR /home/node/app | ||
|
||
COPY package.json pnpm-lock.yaml /home/node/app/ | ||
RUN pnpm i --frozen-lockfile | ||
|
||
COPY . /home/node/app | ||
FROM base AS build | ||
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile | ||
RUN pnpm build | ||
|
||
RUN pnpm prune --prod || true \ | ||
pnpm store prune | ||
|
||
FROM base | ||
COPY --from=prod-deps /app/node_modules /app/node_modules | ||
COPY --from=build /app/.next /app/.next | ||
EXPOSE 3000 | ||
CMD ["npm", "start"] |
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
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
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
Oops, something went wrong.
c9752a4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for next-bootstrap-ts ready!
✅ Preview
https://next-bootstrap-nadqnrarc-stevending1st.vercel.app
Built with commit c9752a4.
This pull request is being automatically deployed with vercel-action