Skip to content

Commit

Permalink
feat: dockerize the hyperswitch-web (#555)
Browse files Browse the repository at this point in the history
  • Loading branch information
PritishBudhiraja authored Aug 12, 2024
1 parent c42a21d commit e7588f3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM node:20-alpine

# Set the working directory
WORKDIR /usr/src/app

# Copy package.json and package-lock.json to install dependencies
COPY package*.json ./

# Install dependencies
RUN npm install --ignore-scripts

# Copy the rest of the application code
COPY . .

# Build the rescript code
RUN npm run re:build

# Build the application
RUN npm run build

# Expose the port that the Webpack dev server will run on
EXPOSE 9050

# Start the Webpack dev server
CMD ["npm", "run", "start"]

0 comments on commit e7588f3

Please sign in to comment.