-
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.
- Loading branch information
1 parent
792cc4c
commit dead394
Showing
4 changed files
with
347 additions
and
79 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 |
---|---|---|
|
@@ -13,4 +13,5 @@ nodemon*.json | |
# Node Files | ||
node_modules | ||
npm-debug.log | ||
npm-debug.log.* | ||
npm-debug.log.* | ||
|
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,19 +1,18 @@ | ||
FROM node:16.14-alpine As development | ||
FROM node:20-alpine As development | ||
|
||
RUN npm install -g pnpm | ||
ENV PNPM_HOME="/pnpm" | ||
ENV PATH="$PNPM_HOME:$PATH" | ||
RUN corepack enable | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json ./ | ||
COPY pnpm-lock.yaml ./ | ||
|
||
RUN pnpm install | ||
RUN pnpm install --frozen-lockfile | ||
|
||
COPY . . | ||
|
||
RUN ls -a | ||
|
||
RUN pnpm prisma generate | ||
RUN pnpm run build | ||
RUN pnpm run prisma:generate && pnpm run build | ||
|
||
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
Oops, something went wrong.