Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active March 14, 2021 20:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fu-sen/3126d995657b2db861d62e593bdf6ac5 to your computer and use it in GitHub Desktop.
Save fu-sen/3126d995657b2db861d62e593bdf6ac5 to your computer and use it in GitHub Desktop.
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
<?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