From b3c62247f7443a59d28b08d595bb36d1e7ada600 Mon Sep 17 00:00:00 2001 From: Sam Vaughton Date: Mon, 26 Jul 2021 10:51:44 +0100 Subject: [PATCH] Updated readme --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a959fda..7606bc5 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,9 @@ # caddy-netlify-redirects Enables Caddy to use Netlify's `_redirect` file format -## Building +## Building via Docker -Within a `Dockerfile` to build: - -# Second stage of build - -As an example, within a dockerfile you can build caddy with this custom module: +As an example, within a dockerfile you can build Caddy with this custom module: ```dockerfile FROM caddy:2.4.3-builder AS builder @@ -18,7 +14,10 @@ RUN xcaddy build \ FROM caddy:2.4.3-alpine as serve COPY --from=builder /usr/bin/caddy /usr/bin/caddy +COPY ./Caddyfile /etc/caddy/Caddyfile +# Copy over your built assets for your webapp, this could be from gatbsy which includes a _redirects file +COPY --from=node-builder /usr/src/app/packages/rentivo-gatsby-site/public /srv ``` ## Config