Skip to content

Commit

Permalink
Patch OS-level packages and remove unneeded dependencies in mysql bas…
Browse files Browse the repository at this point in the history
…e Docker image (#3037)
  • Loading branch information
roger2hk authored Jul 12, 2023
1 parent cf120ed commit 71a4cf1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/deployment/kubernetes/mysql/image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@

FROM ubuntu:jammy

# Patch the OS-level packages and remove unneeded dependencies.
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*

# add our user and group first to make sure their IDs get assigned
# consistently, regardless of whatever dependencies get added
RUN groupadd -r mysql && useradd -r -g mysql mysql
Expand Down

0 comments on commit 71a4cf1

Please sign in to comment.