Attempt to fix docker container not allowing clones

This commit is contained in:
Max Wofford 2025-05-20 13:49:31 -04:00
parent 91efa70b93
commit 4d156d25a8

View file

@ -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.