Files
FranciaOcupada/client/Dockerfile
2025-12-05 22:07:20 +01:00

24 lines
369 B
Docker

FROM node:20-alpine
# Create app directory
WORKDIR /app
# Copy shared module first (as a sibling to client)
COPY shared ./shared
# Setup Client directory
WORKDIR /app/client
# Install dependencies
COPY client/package*.json ./
RUN npm install
# Copy client source code
COPY client/ .
# Expose port
EXPOSE 3000
# Run Next.js in dev mode
CMD ["npx", "next", "dev"]