-
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
1 parent
ada0dfe
commit b968dd5
Showing
1 changed file
with
19 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,19 @@ | ||
FROM node:20.12.0-alpine3.19 | ||
|
||
# Set the working directory to the client app | ||
WORKDIR /usr/src/app | ||
|
||
# Copy the package files specific to the client app | ||
COPY ./package.json ./package-lock.json ./tsconfig.json ./ | ||
|
||
# Install the dependencies for the client app | ||
RUN npm install | ||
|
||
# Copy the rest of the client app files | ||
COPY ./ . | ||
|
||
# Build the client app | ||
RUN npm run build | ||
|
||
# Start the client app | ||
CMD ["npm", "run", "start"] |