Skip to content

Commit

Permalink
chore: update Dockerfile to use PNPM for dependency management
Browse files Browse the repository at this point in the history
- Added PNPM installation to the Dockerfile for improved package management.
- Updated the COPY commands to include necessary configuration files for PNPM.
- Replaced Bun commands with PNPM commands for installing dependencies and generating Prisma client.
- Set the working directory to /usr/src/app/apps/api before starting the application.
  • Loading branch information
Stormix committed Dec 27, 2024
1 parent d4f0187 commit 9d209b1
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,17 @@ RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n
RUN bash n $NODE_VERSION
RUN rm n
RUN npm install -g n
RUN npm install -g pnpm

COPY apps/api .
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
COPY apps/api ./apps/api
COPY packages ./packages

RUN bun install
RUN bunx prisma generate
RUN pnpm install
RUN pnpm generate

EXPOSE 9000

ENTRYPOINT [ "bun", "start" ]
WORKDIR /usr/src/app/apps/api

ENTRYPOINT [ "pnpm", "start" ]

0 comments on commit 9d209b1

Please sign in to comment.