refactor: run upgrade in dockerfiles to update dependencies (#5508)

chore: Update Dockerfiles to use COPY instead of ADD run apt-get upgrade

- Replaced ADD commands with COPY for better clarity and consistency across Dockerfiles.
- Added apt-get upgrade and clean commands to reduce image size and ensure packages are up to date.
- Updated user creation commands to include necessary cleanup steps.
- Ensured all Dockerfiles follow a similar structure for maintainability.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2025-01-02 12:49:41 -03:00 committed by GitHub
commit 8ea4405010
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 45 additions and 21 deletions

View file

@ -3,7 +3,9 @@ ENV TZ=UTC
WORKDIR /app
RUN apt-get update && apt-get install -y \
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
build-essential \
curl \
npm \