Dockerfile optimization
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s

This commit is contained in:
ryan 2025-10-02 11:51:01 -07:00
parent 3b3b1196b6
commit 2346107b74

View File

@ -1,12 +1,17 @@
FROM node:lts AS runtime FROM node:lts AS runtime
WORKDIR /app WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . . COPY . .
RUN npm install
RUN npm run build RUN npm run build
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
ENV PORT=4321 ENV PORT=4321
EXPOSE 4321 EXPOSE 4321
# Database will be mounted as a volume at runtime
CMD node ./dist/server/entry.mjs CMD node ./dist/server/entry.mjs