allow pid creation as ruby user
All checks were successful
Gitea Actions Demo / release-image (push) Successful in 1m0s

This commit is contained in:
Ryan Cavicchioni 2024-07-02 16:45:24 -05:00
parent 72d77a5d7a
commit 9639f10f1a
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,8 @@ RUN <<EOT
apk upgrade --no-cache apk upgrade --no-cache
EOT EOT
RUN mkdir -p /run/app
FROM base AS build FROM base AS build
@ -39,6 +41,8 @@ FROM base
RUN adduser ruby -h /app -D RUN adduser ruby -h /app -D
USER ruby:ruby USER ruby:ruby
RUN mkdir -p /run/app
COPY --from=build /usr/local/bundle /usr/local/bundle COPY --from=build /usr/local/bundle /usr/local/bundle
COPY --from=build --chown=ruby:ruby /app /app COPY --from=build --chown=ruby:ruby /app /app

View File

@ -1,3 +1,3 @@
# workers 3 # workers 3
pidfile '/run/pid' pidfile '/run/app/pid'
preload_app! preload_app!