Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
henryjw committed May 6, 2024
1 parent d8816b8 commit de814ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ RUN corepack enable
WORKDIR /app
COPY . .

RUN --mount=type=cache,target=/pnpm echo "PNPM contents before install: $(ls -la ${PNPM_HOME})"
RUN --mount=type=cache,target=${PNPM_HOME} echo "PNPM contents before install: $(ls -la ${PNPM_HOME})"

RUN --mount=type=cache,target=/pnpm \
RUN --mount=type=cache,target=${PNPM_HOME} \
pnpm config set store-dir ${PNPM_HOME} && \
pnpm install --frozen-lockfile --prefer-offline

RUN --mount=type=cache,target=/pnpm echo "PNPM contents after install: $(ls -la ${PNPM_HOME})"
RUN --mount=type=cache,target=${PNPM_HOME} echo "PNPM contents after install: $(ls -la ${PNPM_HOME})"

# Use a smaller Node.js image for the final image
FROM node:alpine AS prod
Expand Down

0 comments on commit de814ee

Please sign in to comment.