Skip to content

Commit

Permalink
Merge branch 'main' into swamu/526-web-testing-automation
Browse files Browse the repository at this point in the history
  • Loading branch information
swamu authored Aug 12, 2024
2 parents 2c55bef + e7588f3 commit 904b822
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 904b822

Please sign in to comment.