Dockerfile.heroku 533 B

123456789101112131415161718192021222324
  1. FROM php:8.1.9-fpm-alpine3.16
  2. LABEL author="mybsdc <[email protected]>" \
  3. maintainer="luolongfei <[email protected]>"
  4. ENV TZ Asia/Shanghai
  5. ENV IS_HEROKU 1
  6. WORKDIR /app
  7. COPY . ./
  8. COPY ./heroku/nginx.template.conf ./
  9. COPY ./heroku/web ./web/
  10. RUN set -eux \
  11. && apk update \
  12. && apk add --no-cache tzdata bash nginx gettext
  13. COPY ./heroku/startup.sh /
  14. RUN chmod +x /startup.sh
  15. # https://devcenter.heroku.com/articles/container-registry-and-runtime#dockerfile-commands-and-runtime
  16. CMD ["/bin/bash", "-c", "/startup.sh"]