From 58d97ab705585a20bad2b74ee38061ce7969e1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miquel=20Sabat=C3=A9=20Sol=C3=A0?= Date: Thu, 14 Mar 2024 12:07:31 +0100 Subject: [PATCH] deploy: added /data directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ae6eeae..a633f9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,7 +51,8 @@ COPY --from=build /rails /rails # Run and own only the runtime files as a non-root user for security RUN useradd rails --create-home --shell /bin/bash && \ - chown -R rails:rails db log storage tmp + mkdir /data && \ + chown -R rails:rails db log storage tmp /data USER rails:rails # Entrypoint prepares the database.