Something went wrong. Try again.
a cozy corner for communities on the atmosphere. backyard.blue
Something went wrong. Try again.
backyard.blue Dockerfile
1234567891011121314151617181920212223242526272829303132333435# Build stageFROM node:22-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./RUN --mount=type=cache,target=/root/.npm \ npm ci
COPY . .RUN npm run build
# Production stageFROM node:22-alpine AS production
WORKDIR /app
# Copy package files from context so this layer is cached independently of source changes.# Do NOT use --from=builder here; that would bust the cache on every build.COPY package.json package-lock.json ./RUN --mount=type=cache,target=/root/.npm \ npm ci --omit=dev
COPY --from=builder /app/build build/
# NODE_ENV defaults to production but can be overridden at runtime# (e.g. via docker-compose environment or docker run -e)ENV NODE_ENV=${NODE_ENV:-production}ENV PORT=3000ENV BODY_SIZE_LIMIT=52428800
EXPOSE 3000
CMD ["node", "build"]