1
0
مراية لـ https://github.com/postalserver/postal.git تم المزامنة 2025-11-30 21:32:30 +00:00

upgrade ruby and various other dependencies

هذا الالتزام موجود في:
Adam Cooke
2023-02-20 09:57:56 +00:00
الأصل 9f4ef8f57a
التزام c42dd1b9f6
4 ملفات معدلة مع 67 إضافات و71 حذوفات

عرض الملف

@@ -1,14 +1,10 @@
FROM ruby:2.6-buster AS base
FROM ruby:2.7.7-bullseye AS base
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
software-properties-common dirmngr apt-transport-https \
&& apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc' \
&& add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://mirrors.xtom.nl/mariadb/repo/10.6/debian buster main' \
&& (curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -) \
&& (echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list) \
&& (curl -sL https://deb.nodesource.com/setup_12.x | bash -) \
&& (curl -sL https://deb.nodesource.com/setup_14.x | bash -) \
&& rm -rf /var/lib/apt/lists/*
# Install main dependencies
@@ -17,7 +13,8 @@ RUN apt-get update && \
build-essential \
netcat \
curl \
libmariadbclient-dev \
libmariadb-dev \
libcap2-bin \
nano \
nodejs
@@ -34,12 +31,12 @@ RUN mkdir -p /opt/postal/app /opt/postal/config
WORKDIR /opt/postal/app
# Install bundler
RUN gem install bundler -v 2.1.4 --no-doc
RUN gem install bundler -v 2.4.7 --no-doc
# Install the latest and active gem dependencies and re-run
# the appropriate commands to handle installs.
COPY Gemfile Gemfile.lock ./
RUN bundle install -j 4
RUN bundle config set force_ruby_platform true && bundle install -j 4
# Copy the application (and set permissions)
COPY ./docker/wait-for.sh /docker-entrypoint.sh