-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
04e275f
commit 0c6a171
Showing
4 changed files
with
45 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM node:20 AS build | ||
|
||
RUN corepack enable | ||
WORKDIR /app | ||
COPY package.json pnpm-lock.yaml ./ | ||
RUN pnpm install --frozen-lockfile | ||
COPY . . | ||
RUN pnpm build | ||
|
||
FROM node:20-slim | ||
|
||
RUN apt-get update && apt-get install -y ca-certificates openssl && rm -rf /var/lib/apt/lists/* | ||
RUN corepack enable | ||
WORKDIR /app | ||
COPY package.json pnpm-lock.yaml ./ | ||
RUN pnpm install --frozen-lockfile --prod | ||
COPY --from=build /app/build /app/build | ||
ENV NODE_ENV production | ||
CMD ["node", "./build/server.js"] |
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,12 @@ | ||
FROM node:20 | ||
|
||
RUN apt-get update && apt-get install -y ca-certificates openssl && rm -rf /var/lib/apt/lists/* | ||
RUN corepack enable | ||
WORKDIR /app | ||
COPY package.json pnpm-lock.yaml ./ | ||
RUN pnpm install --frozen-lockfile | ||
COPY . . | ||
RUN pnpm build | ||
RUN rm -rf node_modules && pnpm install --frozen-lockfile --prod | ||
ENV NODE_ENV production | ||
CMD ["node", "./build/server.js"] |
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,3 @@ | ||
# BuildKit | ||
|
||
This folder contains various examples that are used to walk through BuildKit concepts in blog posts on [Depot](https://depot.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,11 @@ | ||
FROM node:20 | ||
|
||
RUN corepack enable | ||
|
||
COPY package.json pnpm-lock.yaml ./ | ||
RUN pnpm install --frozen-lockfile | ||
COPY . . | ||
RUN pnpm build | ||
|
||
ENV NODE_ENV production | ||
CMD ["node", "./dist/index.js"] |