Skip to content

Commit

Permalink
deploy: added /data directory
Browse files Browse the repository at this point in the history
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
  • Loading branch information
mssola committed Mar 14, 2024
1 parent 9274d47 commit 58d97ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 58d97ab

Please sign in to comment.