Skip to content

Commit

Permalink
fix: ensure correct build
Browse files Browse the repository at this point in the history
  • Loading branch information
rawkode committed Jul 19, 2023
1 parent e27eaa2 commit 7ee8470
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/rawkode.academy/cms/Dockerfile
Expand Up @@ -6,11 +6,10 @@ RUN npm install -g pnpm

COPY package.json pnpm-lock.yaml ./

RUN pnpm install --strict-peer-dependencies --no-optional --prod --prefer-frozen-lockfile
RUN pnpm install --strict-peer-dependencies --no-optional --prefer-frozen-lockfile

FROM base as build

RUN pnpm install --strict-peer-dependencies --no-optional --prefer-frozen-lockfile
RUN pnpm install @swc/core

COPY . .
Expand All @@ -28,7 +27,8 @@ ENV NODE_ENV=production

COPY --from=build /app/build ./build
COPY --from=build /app/dist ./dist
COPY --from=build /app/node_modules ./node_modules

ENV PAYLOAD_CONFIG_PATH=dist/payload.config.js

EXPOSE 3000

Expand Down

0 comments on commit 7ee8470

Please sign in to comment.