From 2346107b74d894326ffe6714b4ecbb031431db65 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 2 Oct 2025 11:51:01 -0700 Subject: [PATCH] Dockerfile optimization --- hindki/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hindki/Dockerfile b/hindki/Dockerfile index 0a29edf..edc5606 100644 --- a/hindki/Dockerfile +++ b/hindki/Dockerfile @@ -1,12 +1,17 @@ FROM node:lts AS runtime WORKDIR /app +COPY package*.json ./ +RUN npm install + COPY . . -RUN npm install RUN npm run build ENV HOST=0.0.0.0 ENV PORT=4321 EXPOSE 4321 + +# Database will be mounted as a volume at runtime + CMD node ./dist/server/entry.mjs