Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
samvaughton committed Jul 26, 2021
1 parent c0ca316 commit b3c6224
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit b3c6224

Please sign in to comment.