wedding-planner-frontend/Dockerfile.dev
Manuel Bustillo b377e9abe2
Some checks failed
Build Nginx-based docker image / build-static-assets (push) Has been cancelled
Fix the initial address one should access after seeding
2025-09-08 22:47:58 +02:00

23 lines
694 B
Docker

# Based on https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile
FROM node:24-alpine AS base
# Install dependencies only when needed
FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN corepack enable pnpm && pnpm i --frozen-lockfile;
COPY . /app/
ENV NODE_ENV development
ENV NEXT_TELEMETRY_DISABLED 1
EXPOSE 3000
ENV PORT=3000
CMD HOSTNAME="0.0.0.0" pnpm run dev