From 8c269593f0a56cd9a0d4ef444896b529e3e9ad48 Mon Sep 17 00:00:00 2001 From: glaszig Date: Fri, 26 Jul 2024 01:01:37 -0300 Subject: [PATCH] switch to debian --- Dockerfile.template | 42 +++++++++++++++++++++++++++++++----------- 1 file changed, 31 insertions(+), 11 deletions(-) diff --git a/Dockerfile.template b/Dockerfile.template index 392118b..4b6cba9 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -3,20 +3,40 @@ # cd $GOPATH/src/github.com/drone-plugins/drone-capistrano # make deps build docker -FROM ruby:${RUBY_VERSION}-alpine +FROM ruby:${RUBY_VERSION}-slim -ENV BUILD_PACKAGES="curl-dev build-base ca-certificates git openssh-client libc6-compat python3 libc6-compat" \ - DEV_PACKAGES="zlib-dev libxml2-dev libxslt-dev tzdata yaml-dev sqlite-dev postgresql-dev mariadb-dev" \ +ENV RUBY_VERSION=${RUBY_VERSION} \ PYTHONUNBUFFERED=1 -RUN \ - apk add --update --upgrade $BUILD_PACKAGES $DEV_PACKAGES && \ - ln -sf python3 /usr/bin/python && \ - find / -type f -iname \*.apk-new -delete && \ - rm -rf /var/cache/apk/* && \ - rm -rf /usr/lib/ruby/gems/*/cache/* && \ - rm -rf /usr/local/bundle/cache/* && \ - rm -rf ~/.gem +RUN apt-get update && apt-get install -y --no-install-recommends \ + python3 \ + openssh-client \ + git \ + tzdata \ + ca-certificates \ + autoconf \ + bison \ + dpkg-dev \ + libcurl4-openssl-dev \ + libffi-dev \ + libgdbm6 \ + libgdbm-dev \ + libmariadb-dev \ + libmysqlclient-dev \ + libncurses5-dev \ + libpq-dev \ + libreadline6-dev \ + libsqlite3-dev \ + libssl-dev \ + libxml2-dev \ + libxslt1-dev \ + libyaml-dev \ + zlib1g-dev && \ + apt-get clean && \ + rm -rf /var/cache/apt/* && \ + rm -rf /usr/lib/ruby/gems/*/cache/* && \ + rm -rf /usr/local/bundle/cache/* && \ + rm -rf ~/.gem ADD bundle.sh / ADD drone-capistrano /bin/