Files
nuxtui_lab/dockerfile
suricatingss a1a8d0e638 full build
2025-12-04 22:42:11 +00:00

34 lines
493 B
Plaintext

FROM node:22-alpine AS build
WORKDIR /app
#RUN corepack enable
# Copy package.json
COPY package.json .
# Install dependencies
RUN npm i --prod
# Copy the entire project
COPY . ./
# Build the project
RUN npm run build
# Build Stage 2
FROM node:22-alpine
WORKDIR /app
# Only `.output` folder is needed from the build stage
COPY --from=build /app/.output/ ./
# Change the port and host
ENV PORT=3000
ENV HOST=0.0.0.0
EXPOSE 3000
VOLUME [ "/app" ]
CMD ["node", "/app/server/index.mjs"]