2025-06-25 16:45:58 -04:00
|
|
|
# Use a Node.js base image
|
|
|
|
|
FROM node:22.14-slim
|
|
|
|
|
|
|
|
|
|
# Set the working directory inside the container
|
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
|
|
# Copy package.json and package-lock.json (or yarn.lock/pnpm-lock.yaml)
|
|
|
|
|
COPY package*.json ./
|
|
|
|
|
|
2026-07-23 10:38:20 -04:00
|
|
|
ARG NEXT_SERVER_ACTIONS_ENCRYPTION_KEY
|
|
|
|
|
ENV NEXT_SERVER_ACTIONS_ENCRYPTION_KEY=$NEXT_SERVER_ACTIONS_ENCRYPTION_KEY
|
|
|
|
|
|
2025-06-25 16:45:58 -04:00
|
|
|
# Install dependencies
|
2026-07-23 10:38:20 -04:00
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
|
|
# RUN build
|
2025-06-25 16:45:58 -04:00
|
|
|
|
|
|
|
|
# Copy the rest of your application code
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
|
|
# Expose the port Next.js runs on
|
|
|
|
|
EXPOSE 3001
|
|
|
|
|
|
|
|
|
|
# Command to run the Next.js development server
|
|
|
|
|
CMD ["npm", "run", "dev"]
|