Skip to content

Commit

Permalink
fix(Dockerfile): add try_files logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nevivurn committed Aug 24, 2024
1 parent 61daf58 commit a8d07aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:8080 {
root * /app
encode gzip zstd
try_files {path} /index.html
file_server
log
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ FROM caddy:2
WORKDIR /app

COPY --from=builder /app/dist/ /app/
COPY Caddyfile /etc/caddy/Caddyfile

EXPOSE 8080
CMD ["/usr/bin/caddy", "file-server", "--access-log", "--listen", ":8080"]

0 comments on commit a8d07aa

Please # to comment.