1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-06-19 17:45:18 +00:00
Files
renovate[bot] 21c4910b41 chore(deps): update all non-major dependencies (#71)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-05-24 01:30:26 +00:00

26 lines
401 B
Docker

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