Skip to content

Commit

Permalink
fix: adjust build
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi authored Jan 4, 2025
1 parent b13a789 commit a2804b6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ WORKDIR /tmp/build

RUN corepack enable && corepack prepare pnpm@latest

RUN apk add --no-cache build-base git python3
RUN apt update && apt install -y build-essential git python3

COPY package*.json .
COPY pnpm-lock.yaml .
Expand All @@ -21,11 +21,12 @@ FROM ghcr.io/hazmi35/node:20

WORKDIR /app

RUN apk add --no-cache tzdata
RUN apt update && apt install -y tzdata

COPY --from=build-stage /tmp/build/package.json .
COPY --from=build-stage /tmp/build/pnpm-lock.yaml .
COPY --from=build-stage /tmp/build/node_modules ./node_modules
COPY --from=build-stage /tmp/build/dist ./dist
COPY --from=build-stage /tmp/build/drizzle ./drizzle

CMD node dist/index.js

0 comments on commit a2804b6

Please sign in to comment.