From bdec69360e3e341e9ba7582412e91766a76cf544 Mon Sep 17 00:00:00 2001 From: a squid <34890855+squi-ddy@users.noreply.github.com> Date: Tue, 28 Nov 2023 21:46:12 +0800 Subject: [PATCH] busybox frontend --- frontend/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index e1c5d2c..4d35ad4 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -18,11 +18,9 @@ COPY --from=dependencies /app/node_modules ./node_modules RUN pnpm run build RUN pnpm prune --prod -FROM base AS deploy +FROM busybox:musl AS deploy WORKDIR /app/ -COPY package.json pnpm-lock.yaml ./ -COPY --from=build /app/dist ./dist -COPY --from=build /app/node_modules ./node_modules +COPY --from=build /app/dist . -CMD ["pnpm", "start"] +CMD ["busybox", "httpd", "-f", "-v", "-p", "3001"]