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:
parent
6c3cde8973
commit
8ea4405010
5 changed files with 45 additions and 21 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue