Skip to content

Commit

Permalink
fix: install pnpm command
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzoo committed Jan 17, 2025
1 parent 3099a54 commit c533de1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile.client
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ RUN corepack enable
COPY . /app
# Set Directory
WORKDIR /app
# Copies package.json & pnpm-lock file
COPY package.json .
COPY pnpm-lock.yaml .
# Install deps & build
FROM base AS prod-deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile

FROM base AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY . ./
RUN pnpm build:client

# Stage 2
# Nginx image
FROM nginx:stable-alpine
#
COPY --from=prod-deps /app/node_modules /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html
# Delete nginx default config file
RUN rm /etc/nginx/conf.d/default.conf
Expand Down

0 comments on commit c533de1

Please sign in to comment.