Skip to content

Commit

Permalink
fix vercel build
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes committed Oct 17, 2024
1 parent e095fa1 commit 90858ee
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 193 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# Use an official Node runtime as the base image
FROM node:18-alpine

# Install pnpm
RUN npm install -g pnpm

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install dependencies
RUN npm install
RUN pnpm install

# Copy the rest of the application code
COPY . .

# Build the Next.js app
RUN CI=true npm run build
RUN CI=true pnpm run build

# Expose the port the app runs on
EXPOSE 3000

# Start the application
CMD ["npm", "start"]
CMD ["pnpm", "start"]
9 changes: 6 additions & 3 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# Use an official Node runtime as the base image
FROM node:18-alpine

# Install pnpm
RUN npm install -g pnpm

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install dependencies
RUN npm install
RUN pnpm install

# Copy the rest of the application code
COPY . .

# Build the Next.js app
# RUN CI=true npm run build
# RUN CI=true pnpm run build

# Expose the port the app runs on
EXPOSE 3000

# Start the application
CMD ["npm", "run", "dev"]
CMD ["pnpm", "run", "dev"]
Loading

0 comments on commit 90858ee

Please sign in to comment.