1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 10:54:39 +00:00
Files
canvas-3d/Dockerfile
renovate[bot] 0a7fc82889 chore(deps): update all non-major dependencies (#45)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-26 01:44:47 +00:00

26 lines
401 B
Docker

ARG NODE_VERSION=22.20.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"]