From bbbd56ea8b5db940030c3560ee0a64ee60269b03 Mon Sep 17 00:00:00 2001 From: Opnxng Date: Sun, 13 Oct 2024 01:38:52 +0800 Subject: [PATCH] Hckrnws: updated Dockerfile --- dockerfiles/hckrnws.Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dockerfiles/hckrnws.Dockerfile b/dockerfiles/hckrnws.Dockerfile index 0b0bb80..dc771de 100755 --- a/dockerfiles/hckrnws.Dockerfile +++ b/dockerfiles/hckrnws.Dockerfile @@ -11,13 +11,16 @@ COPY package.json pnpm-lock.yaml ./ RUN npm install -g pnpm # Install project dependencies -RUN pnpm install +RUN pnpm install --frozen-lockfile # Copy the rest of the application code COPY . . +# Build the application for production +RUN pnpm run build + # Expose the port EXPOSE 3000 -# Command to run the application -CMD ["pnpm", "run", "dev"] +# Command to run the application in production +CMD ["pnpm", "run", "start"]