Files
kestrelos/Dockerfile
Keli Grubb 28ac43e47b
Some checks failed
ci/woodpecker/push/ci Pipeline failed
add ci (#1)
Co-authored-by: Madison Grubb <madison@elastiflow.com>
Reviewed-on: #1
2026-02-12 19:50:44 +00:00

27 lines
449 B
Docker

FROM node:24-slim AS builder
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci
COPY . .
RUN npm run build
# Run stage
FROM node:24-slim AS runner
# Run as non-root user (node user exists in official image)
USER node
WORKDIR /app
ENV HOST=0.0.0.0
ENV PORT=3000
# Copy app as node user (builder stage ran as root)
COPY --from=builder --chown=node:node /app/.output ./.output
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]