Skip to content

Commit

Permalink
Dont use build for dockerfile.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkE16 committed Jan 15, 2025
1 parent 3714e96 commit a012c33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 30 deletions.
8 changes: 1 addition & 7 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@ RUN corepack enable
COPY . /app
WORKDIR /app

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 && pnpm run build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile

FROM base
COPY --from=prod-deps /app/node_modules /app/node_modules
COPY --from=build /app/dist /app/dist
EXPOSE 3000
CMD [ "pnpm", "run", "dev" ]
23 changes: 0 additions & 23 deletions api/ssr.js

This file was deleted.

0 comments on commit a012c33

Please sign in to comment.