-
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.
🚑 hotfix: alpine에서 openssl, prisma 오류
- Loading branch information
1 parent
1e97384
commit e0e4111
Showing
2 changed files
with
12 additions
and
8 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,16 +1,20 @@ | ||
FROM node:20-alpine | ||
FROM node:22-alpine3.19 AS base | ||
|
||
WORKDIR /usr/src/app | ||
COPY . . | ||
|
||
COPY package.json ./ | ||
COPY yarn.lock ./ | ||
FROM base AS prod-deps | ||
RUN apk add --no-cache git | ||
RUN yarn install --prod --frozen-lockfile | ||
|
||
FROM base AS build | ||
RUN apk add --no-cache git | ||
RUN yarn install --frozen-lockfile | ||
|
||
COPY . . | ||
|
||
RUN yarn build | ||
|
||
FROM base | ||
COPY --from=prod-deps /usr/src/app/node_modules /usr/src/app/node_modules | ||
COPY --from=build /usr/src/app/dist /usr/src/app/dist | ||
|
||
EXPOSE 3000 | ||
CMD [ "node", "dist/main.js" ] | ||
CMD [ "node", "dist/main.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