Skip to content

Commit

Permalink
chore: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Aug 8, 2023
1 parent 2157a14 commit 815018a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ FROM ghcr.io/hazmi35/node:18-dev-alpine as build-stage
LABEL name "Nezu Fuzzier (Docker Build)"
LABEL maintainer "KagChi"

COPY package*.json .
COPY . .

RUN npm ci

COPY . .

RUN npm run build

RUN npm prune --production
Expand All @@ -22,6 +20,6 @@ COPY --from=build-stage /tmp/build/package.json .
COPY --from=build-stage /tmp/build/package-lock.json .
COPY --from=build-stage /tmp/build/bun.lockb .
COPY --from=build-stage /tmp/build/node_modules ./node_modules
COPY --from=build-stage /tmp/build/src .
COPY --from=build-stage /tmp/build/src ./src

CMD ["bun", "start"]

0 comments on commit 815018a

Please sign in to comment.