From a32e2db264a08714d26820f676adac0d590c0d73 Mon Sep 17 00:00:00 2001 From: Ziyunhui Date: Mon, 5 Aug 2024 21:00:16 +0800 Subject: [PATCH] test6 --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 013185e..8419bee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ -FROM oven/bun:1 +FROM oven/bun:latest WORKDIR /usr/src/app -COPY . . COPY ./config.json /config +COPY . . RUN bun install --frozen-lockfile --production ENV NODE_ENV=production +RUN bun run build + EXPOSE 7000/tcp VOLUME [ "/config"] ENTRYPOINT [ "bun", "run", "index.ts" ] \ No newline at end of file