asherfalcon.com/dockerfile
Asher fecb9e9153
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m18s
updated dockerfile
2025-02-23 18:44:17 +00:00

23 lines
328 B
Plaintext

FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy application files
COPY . .
# Build the Next.js app
RUN npm run build
# Expose the necessary port
EXPOSE 3000
# Start the application
CMD ["npm", "start"]