From ef9f4fe3c498e7c9cef2e0cf3952d8bb4fb6d0eb Mon Sep 17 00:00:00 2001 From: jasl Date: Thu, 28 Nov 2024 04:00:59 +0800 Subject: [PATCH] update dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 19dae7a..c910aa4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,14 +9,14 @@ # Make sure RUBY_VERSION matches the Ruby version in .ruby-version ARG RUBY_VERSION=3.3.6 -FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base +FROM --platform=$BUILDPLATFORM docker.io/library/ruby:$RUBY_VERSION-slim AS base # Rails app lives here WORKDIR /rails # Install base packages RUN apt-get update -qq && \ - apt-get install --no-install-recommends -y curl libjemalloc2 postgresql-client && \ + apt-get install --no-install-recommends -y curl libjemalloc2 postgresql-client automake libtool && \ rm -rf /var/lib/apt/lists /var/cache/apt/archives # Set production environment