Skip to content

Commit

Permalink
Run apt upgrade on runtime stage when building image
Browse files Browse the repository at this point in the history
Ref DEV-1379
  • Loading branch information
elise-ng committed Jun 21, 2024
1 parent a974318 commit 495bf52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/authgear/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
media-types \
tzdata \
&& rm -rf /var/lib/apt/lists/*
&& apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
RUN update-ca-certificates
COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb
COPY ./migrations ./migrations
Expand Down
2 changes: 1 addition & 1 deletion cmd/portal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
media-types \
tzdata \
&& rm -rf /var/lib/apt/lists/*
&& apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
RUN update-ca-certificates
COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb
COPY ./migrations ./migrations
Expand Down
2 changes: 1 addition & 1 deletion custombuild/cmd/authgearx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
media-types \
tzdata \
&& rm -rf /var/lib/apt/lists/*
&& apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
RUN update-ca-certificates
COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb
COPY ./migrations ./migrations
Expand Down
2 changes: 1 addition & 1 deletion custombuild/cmd/portalx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
media-types \
tzdata \
&& rm -rf /var/lib/apt/lists/*
&& apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
RUN update-ca-certificates
COPY ./GeoLite2-Country.mmdb ./GeoLite2-Country.mmdb
COPY ./migrations ./migrations
Expand Down

0 comments on commit 495bf52

Please sign in to comment.