From bca434420092490d675f7aff473a17c391597cfb Mon Sep 17 00:00:00 2001 From: Andrew Hayworth Date: Mon, 6 Jun 2022 18:13:06 -0500 Subject: [PATCH] ruby: switch to `-slim` image (#121) If I had invested, say, a mere modicum of effort into understanding what needed to be done to use a `-slim` image in the first place, then we would have included this in #109 from the start. However, I clearly did not. :facepalm: This change switches us to the `-slim` image, and installs the one thing we actually need to build `puma`: Debian's `build-essential` package. --- src/emailservice/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/emailservice/Dockerfile b/src/emailservice/Dockerfile index 572f4aaf81..bab3bb24ac 100644 --- a/src/emailservice/Dockerfile +++ b/src/emailservice/Dockerfile @@ -12,7 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -FROM ruby:3.1.2 +FROM ruby:3.1.2-slim + +RUN apt-get update -y && apt-get install -y build-essential COPY Gemfile* . RUN bundle install