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

chore(dockerfile): reduce container size

هذا الالتزام موجود في:
Adam Cooke
2025-10-01 18:12:05 +01:00
الأصل 7c47422c86
التزام 86de372382

عرض الملف

@@ -1,6 +1,11 @@
FROM ruby:3.4.6-bookworm AS base FROM ruby:3.4.6-slim-bookworm AS base
SHELL ["/bin/bash", "-o", "pipefail", "-c"] SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update \
&& apt-get install --no-install-recommends -y curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN (curl -sL https://deb.nodesource.com/setup_20.x | bash -) RUN (curl -sL https://deb.nodesource.com/setup_20.x | bash -)
# Install main dependencies # Install main dependencies
@@ -8,11 +13,13 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
build-essential \ build-essential \
netcat-openbsd \ netcat-openbsd \
curl \
libmariadb-dev \ libmariadb-dev \
libcap2-bin \ libcap2-bin \
nano \ nano \
nodejs libyaml-dev \
nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/ruby RUN setcap 'cap_net_bind_service=+ep' /usr/local/bin/ruby