From d551a7df3f9330678a03f2d45dfe14f1dc227923 Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Wed, 31 Jul 2024 18:34:49 +0200 Subject: [PATCH] Switch to alpine linux Signed-off-by: Robert Waffen --- Dockerfile | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1f0a19bc..beddcc26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,16 @@ -FROM ruby:3.3.5-slim-bookworm +FROM ruby:3.3.5-alpine3.20 -RUN apt update && apt install -y \ - g++ \ - gcc \ - make \ - libstdc++-12-dev \ - libffi-dev \ - libc-dev \ - libxml2-dev \ - libxslt-dev \ - libgcrypt-dev \ - libsqlite3-dev \ - sqlite3 \ - # not needed for gems, but for runtime - git \ - tzdata \ - && rm -rf /var/lib/apt/lists/* +RUN apk update \ + && apk upgrade \ + && apk add --no-cache --update \ + git \ + sqlite \ + alpine-sdk \ + libxml2-dev \ + libxslt-dev \ + tzdata \ + bash \ + gcompat ENV APP_HOME /hdm ENV RAILS_ENV production