This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
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.
Signed-off-by: Chaz Leong <13462818+cleong14@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
45 additions
and
29 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 |
---|---|---|
@@ -1,22 +1,30 @@ | ||
FROM artifactory.cloud.cms.gov/batcave-docker/node:18-alpine AS base | ||
|
||
WORKDIR /app | ||
|
||
RUN apk add --no-cache make python3 g++ | ||
|
||
COPY package*.json . | ||
|
||
RUN npm ci && npm cache clean --force | ||
|
||
|
||
FROM base AS build | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
|
||
FROM artifactory.cloud.cms.gov/batcave-docker/node:18-alpine | ||
|
||
WORKDIR /app | ||
|
||
EXPOSE 4200 | ||
EXPOSE 8888 | ||
|
||
USER node | ||
|
||
COPY --chown=node:node --from=build /app /app | ||
|
||
CMD ["npm", "run", "start", "--", "--host", "0.0.0.0"] |
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