From 127be7c42a2018aa9ee1660a92919f3d2e2e779e Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Sun, 30 Jul 2023 20:34:36 +0200 Subject: [PATCH] use less run Signed-off-by: Roger Sikorski --- .hadolint.yaml | 2 ++ Dockerfile | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .hadolint.yaml diff --git a/.hadolint.yaml b/.hadolint.yaml new file mode 100644 index 0000000..81540f9 --- /dev/null +++ b/.hadolint.yaml @@ -0,0 +1,2 @@ +ignored: + - DL3008 # no need to pin versions diff --git a/Dockerfile b/Dockerfile index 7000346..53c8cf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ # https://hub.docker.com/_/monica FROM monica:4 -# Use the default production configuration -RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" -# increase php upload limit -RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 50M/' "$PHP_INI_DIR/php.ini" +RUN \ + # Use the default production configuration + mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \ + # increase php upload limit + sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 50M/' "$PHP_INI_DIR/php.ini" # supervisord dependencies RUN apt-get update && \