allow pid creation as ruby user
Some checks failed
Gitea Actions Demo / release-image (push) Failing after 39s
Some checks failed
Gitea Actions Demo / release-image (push) Failing after 39s
This commit is contained in:
parent
72d77a5d7a
commit
2a074de026
@ -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,9 @@ 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
|
||||||
|
RUN chown ruby:ruby /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
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# workers 3
|
# workers 3
|
||||||
pidfile '/run/pid'
|
pidfile '/run/app/pid'
|
||||||
preload_app!
|
preload_app!
|
||||||
|
Loading…
Reference in New Issue
Block a user