diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..03cb27f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +node_modules +npm-debug.log +Dockerfile +.dockerignore +.next + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5b0f75d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Use official Node.js image +FROM node:20 + +# Create app directory +WORKDIR /app + +# Copy dependency files +COPY package*.json ./ + +# Install dependencies +RUN npm install + +# Copy rest of the app +COPY . . + +# Build the Next.js app +RUN npm run build + +# Expose default Next.js port +EXPOSE 3000 + +# Start the server +CMD ["npm", "start"] +