From 815018ac9e47094f08bb638b343d551fd20ff61c Mon Sep 17 00:00:00 2001 From: kagchi Date: Tue, 8 Aug 2023 20:21:22 +0700 Subject: [PATCH] chore: update dockerfile --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96780e3..8e3ce18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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"] \ No newline at end of file