2 Commits

Author SHA1 Message Date
3398dc786b don't install apt-get recommendations
All checks were successful
Gitea Actions Demo / lint (push) Successful in 21s
Gitea Actions Demo / test (push) Successful in 14s
Gitea Actions Demo / docker (push) Successful in 2m29s
2025-04-29 13:52:08 -05:00
9f873ffaea set PORT and PIDFILE via environment variables
Some checks failed
Gitea Actions Demo / lint (push) Successful in 22s
Gitea Actions Demo / test (push) Successful in 14s
Gitea Actions Demo / docker (push) Has been cancelled
2025-04-28 15:31:09 -05:00
3 changed files with 9 additions and 5 deletions

View File

@ -1 +1,5 @@
ENV["PUMA_PID"] = Process.pid.to_s
port ENV.fetch("PORT", 4567)
pidfile ENV["PIDFILE"] if ENV["PIDFILE"]

View File

@ -39,5 +39,5 @@ COPY --from=build --chown=app:app /app /app
COPY --chown=app:app . .
EXPOSE 4567
CMD [ "puma", "--bind", "0.0.0.0", "--port", "$PORT" ]
EXPOSE $PORT
CMD [ "puma" ]

View File

@ -16,7 +16,7 @@ ENV BUNDLE_DEPLOYMENT=true \
BUNDLE_WITHOUT="development test"
RUN <<EOT
apt-get install --yes gcc make
apt-get install --yes --no-install-recommends gcc make libc-dev
EOT
COPY Gemfile* .
@ -40,5 +40,5 @@ COPY --from=build --chown=app:app /app /app
COPY --chown=app:app . .
EXPOSE 4567
CMD [ "puma", "--bind", "0.0.0.0", "--port", "$PORT" ]
EXPOSE $PORT
CMD [ "puma" ]