From 3dadc5af65088845f6b96d50e9546abc2540a869 Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Wed, 31 Jul 2024 18:34:49 +0200 Subject: [PATCH] Swirch to alpine linux Signed-off-by: Robert Waffen --- Dockerfile | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/Dockerfile b/Dockerfile index 61d28299..f53bfb95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,16 @@ -FROM ruby:3.3.4-slim-bookworm +FROM ruby:3.3.4-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