Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Packages and Update Dockerfile #2282

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
FROM node:20-alpine3.17 as build-stage
FROM node:20-alpine3.20 as build-stage
WORKDIR /usr/src/app
ARG DOCKER_TAG="latest"

# Resolves packageManager yarn issue in the package.json file
ENV SKIP_YARN_COREPACK_CHECK=0

# install build dependencies
COPY package.json .

Expand All @@ -18,9 +21,9 @@ RUN echo "{ \"version\": \"${DOCKER_TAG}\" }" > ./src/common/constants/release.j

RUN yarn build

FROM nginx:alpine3.17
FROM nginx:alpine3.20
ENV NGINX_USER=svc_nginx_hmda
RUN apk update; apk upgrade
RUN apk update && apk upgrade
RUN rm -rf /etc/nginx/conf.d
COPY nginx /etc/nginx
COPY --from=build-stage /usr/src/app/dist /usr/share/nginx/html
Expand All @@ -31,4 +34,4 @@ RUN adduser -S $NGINX_USER nginx && \
chown -R $NGINX_USER:$NGINX_USER /etc/nginx /run/nginx.pid /var/cache/nginx/
EXPOSE 8080
USER svc_nginx_hmda
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"@docsearch/react": "3.6.0",
"@redux-devtools/extension": "^3.3.0",
"@reduxjs/toolkit": "^1.9.7",
"@tanstack/react-table": "8.17.3",
"@uswds/compile": "^1.1.0",
"@uswds/uswds": "3.8.0",
"@tanstack/react-table": "8.20.5",
"@uswds/compile": "^1.2.0",
"@uswds/uswds": "3.8.2",
"ansi-html": "0.0.8",
"csv-parse": "4.16.3",
"detect-browser": "4.8.0",
"elliptic": "6.5.5",
"elliptic": "6.5.7",
"fast-deep-equal": "2.0.1",
"file-saver": "2.0.5",
"highcharts": "10.3.3",
Expand Down Expand Up @@ -92,7 +92,7 @@
"jest": "^29.7.0",
"react-icons": "^4.4.0",
"serialize-javascript": "5.0.1",
"vite": "5.2.8",
"vite": "5.4.7",
"vite-plugin-node-polyfills": "^0.19.0",
"vite-plugin-svgr": "^4.1.0"
},
Expand Down
Loading