1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 02:44:40 +00:00
Files
canvas-3d/Dockerfile
renovate[bot] f1b8102898 chore(deps): update all non-major dependencies (#43)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 01:06:12 +00:00

26 lines
401 B
Docker

ARG NODE_VERSION=22.18.0-slim
# Stage 1: Build the application
FROM node:${NODE_VERSION} AS builder
WORKDIR /build
# See .dockerignore
COPY . .
RUN npm cache clean --force && npm ci && npm run build
# Stage 2: Run the application
FROM node:${NODE_VERSION}
WORKDIR /app
COPY --from=builder /build/.output .
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
ENTRYPOINT ["node", "./server/index.mjs"]