beamer-testbed runs with local user's UID/GID

so that created files aren't owned by root
This commit is contained in:
Mike Dalessio
2025-10-22 14:28:44 -07:00
parent a01e2588d6
commit cd6ef14d00
5 changed files with 10 additions and 8 deletions
+3 -2
View File
@@ -21,7 +21,7 @@ COPY Gemfile Gemfile.lock .ruby-version ./
COPY lib/bootstrap.rb ./lib/bootstrap.rb
COPY gems ./gems/
RUN --mount=type=secret,id=GITHUB_TOKEN --mount=type=cache,id=fizzy-devbundle-${RUBY_VERSION},sharing=locked,target=/devbundle \
gem install bundler && \
gem install bundler foreman && \
BUNDLE_PATH=/devbundle BUNDLE_GITHUB__COM="$(cat /run/secrets/GITHUB_TOKEN):x-oauth-basic" bundle install && \
cp -a /devbundle/. "$BUNDLE_PATH"/ && \
bundle clean --force
@@ -32,7 +32,8 @@ FROM registry.37signals.com/basecamp/beamer:vfs AS beamer
# Final stage
FROM base
# Copy beamer
# Copy beamer into /usr/local because /rails is mounted as a volume and will overwrite anything
# there.
COPY --from=beamer /home/beamer/bin/beamer.so /usr/local/lib/beamer/beamer.so
COPY --from=beamer /usr/local/bin/beamer /usr/local/bin/beamer