init with docker

This commit is contained in:
Jason Jordan
2025-06-25 16:45:58 -04:00
commit f971a75ad5
19 changed files with 6538 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# 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 ./
# Install dependencies
RUN npm install
# 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"]