From 46ce7ba8b4eca488c454a74e850e28ae713bdb7f Mon Sep 17 00:00:00 2001 From: Alex Hicks Date: Mon, 21 Oct 2024 21:06:58 -0400 Subject: [PATCH] Fix web Dockerfile --- web/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index 162b994..c1639fb 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -23,13 +23,13 @@ COPY web/src src RUN pnpm build FROM base AS server - -RUN pnpm install --prod --frozen-lockfile +RUN npm i -g serve WORKDIR /rex COPY --from=builder /rex/sdk/dist sdk/dist -COPY --from=builder /rex/web/build web/build -COPY --from=builder /rex/web/public web/public WORKDIR /rex/web -CMD pnpm start +COPY --from=builder /rex/web/dist dist +COPY --from=builder /rex/web/public public + +CMD ["serve", "-s", "dist", "-l", "tcp://0.0.0.0:3000"]