Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed May 12, 2023
1 parent be93c95 commit 257d4f5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Hacky af, but it works
FROM tarampampam/error-pages:2.24.0 as builder

WORKDIR /src

COPY . .

RUN ["/bin/error-pages", "--verbose", "build", "--index", "html"]

FROM tarampampam/error-pages as runtime

COPY --from=builder /src/error-pages.yml /opt/error-pages.yml
COPY --from=builder /src/html /opt/html
COPY --from=builder /src/fyra.html /opt/fyra.html

ENV TEMPLATE_NAME="fyra"

0 comments on commit 257d4f5

Please sign in to comment.