Last active
March 14, 2021 20:16
-
-
Save fu-sen/3126d995657b2db861d62e593bdf6ac5 to your computer and use it in GitHub Desktop.
Caddy + PHP-FPM with Google Cloud Run https://caddy.community/t/caddy-works-with-google-cloud-run/6898
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM abiosoft/caddy:php | |
COPY ./ /srv/ | |
RUN sed -i 's/0\.0\.0\.0/0.0.0.0:{$PORT}/' /etc/Caddyfile | |
RUN sed -e '$a tls off' /etc/Caddyfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$target = getenv('TARGET', true) ?: 'Caddy'; | |
echo sprintf("Hello %s!", $target); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment