From 369aa6a6ed25fdbfa6a7e0d21358b05f3517259f Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Wed, 19 Mar 2025 18:51:26 +0100 Subject: [PATCH] split install into multiple steps --- Dockerfile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2337aa3..10706ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,22 @@ FROM debian:latest # Install dependencies -RUN apt-get update && apt-get install -y \ - curl gnupg2 ca-certificates lsb-release apt-transport-https \ - postgresql caddy nodejs npm && \ - rm -rf /var/lib/apt/lists/* +RUN apt-get update + +RUN apt-get install -y \ + curl gnupg2 ca-certificates lsb-release apt-transport-https + +RUN apt-get install -y \ + postgresql + +RUN apt-get install -y \ + caddy + +RUN apt-get install -y \ + nodejs npm + + +RUN rm -rf /var/lib/apt/lists/* RUN echo "listen_addresses='*'" >> /etc/postgresql/15/main/postgresql.conf && \ echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/15/main/pg_hba.conf && \