Skip to content

Commit

Permalink
fix(Dockerfile): Upgrade and remove upgrade command from dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiodmota committed Nov 7, 2023
1 parent af99bc5 commit 5a5b8ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- Updated arc42 documentation to align with the updated Country Risk application.
- Switched the shell interpreter from `bash` to `sh` in our scripts to enhance portability and reduce dependencies.

- Switched the shell interpreter from `bash` to `sh` in our scripts to enhance portability and reduce dependencies.
- Upgrade node version on Dockerfile

## [1.2.0] - 2023-10-11

Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#*******************************************************************************

# Base image
FROM node:18-alpine AS compile-image
FROM node:20-alpine AS compile-image

# Set work directory
WORKDIR /app
Expand Down Expand Up @@ -68,8 +68,7 @@ COPY ./scripts/inject-dynamic-env.sh /docker-entrypoint.d/00-inject-dynamic-env.
RUN chmod +x /docker-entrypoint.d/00-inject-dynamic-env.sh

# Update vulnerable packages
RUN apk update && \
apk upgrade
RUN apk update

# Change ownership and switch back to nginx user
RUN chown -R 101:101 /usr/share/nginx/html/
Expand Down

0 comments on commit 5a5b8ca

Please sign in to comment.