diff --git a/Dockerfile b/Dockerfile index d0186b6..8cbd6a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -68,7 +68,8 @@ COPY --from=build /usr/lib/git-core /usr/lib/git-core # Run and own only the runtime files as a non-root user for security RUN groupadd --system --gid 1000 rails && \ useradd rails --uid 1000 --gid 1000 --create-home --shell /bin/bash && \ - chown -R rails:rails db log storage tmp + chown -R rails:rails db log storage tmp && \ + mkdir -p content/projects && chown -R rails:rails content USER 1000:1000 # Entrypoint prepares the database.