-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into swamu/526-web-testing-automation
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 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 |
---|---|---|
@@ -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"] |