Skip to content

Commit

Permalink
chore(ops): add dockerfile (#1916)
Browse files Browse the repository at this point in the history
* chore(ops): add dockerfile

* chore(ops): add dockerfile

* chore(ops): add dockerfile

* chore(ops): add dockerfile
  • Loading branch information
Pierre Gee authored Nov 30, 2023
1 parent 1077620 commit 7eee269
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM node:18-alpine AS base

# Set the working directory inside the container
WORKDIR /app

# Copy the package files to the working directory
COPY package.json pnpm-lock.yaml /app/

# Install PNPM globally
RUN npm install -g pnpm

# Install project dependencies using PNPM
RUN pnpm install --ignore-scripts puppeteer
# To check why lossless-json is not installed by jellyfishsdk
RUN pnpm install [email protected]

# Copy the rest of the application code
COPY . .

# Build the Next.js application
RUN pnpm run build

# Expose the port on which the application will run
EXPOSE 3000

# Start the Next.js application
CMD ["pnpm", "start"]

0 comments on commit 7eee269

Please sign in to comment.