allow pid creation as ruby user
All checks were successful
Gitea Actions Demo / release-image (push) Successful in 1m0s
All checks were successful
Gitea Actions Demo / release-image (push) Successful in 1m0s
This commit is contained in:
parent
72d77a5d7a
commit
a8f3a655f9
@ -9,6 +9,8 @@ RUN <<EOT
|
||||
apk upgrade --no-cache
|
||||
EOT
|
||||
|
||||
RUN mkdir -p /run/app
|
||||
|
||||
|
||||
FROM base AS build
|
||||
|
||||
@ -37,6 +39,11 @@ FROM base
|
||||
|
||||
# RUN useradd ruby --home /app --shell /bin/sh
|
||||
RUN adduser ruby -h /app -D
|
||||
|
||||
RUN mkdir -p /run/app
|
||||
|
||||
RUN chown ruby:ruby /run/app
|
||||
|
||||
USER ruby:ruby
|
||||
|
||||
COPY --from=build /usr/local/bundle /usr/local/bundle
|
||||
|
@ -1,3 +1,3 @@
|
||||
# workers 3
|
||||
pidfile '/run/pid'
|
||||
pidfile '/run/app/pid'
|
||||
preload_app!
|
||||
|
Loading…
Reference in New Issue
Block a user