-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
191 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Oops, something went wrong.