Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
ci: use caddy to serve storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Oct 6, 2022
1 parent 1f71c99 commit fee2bc2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:80 {
encode zstd gzip
file_server
}


6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ RUN pnpm run build:storybook
######################################################################
# This stage download a simple http server and serve the application #
######################################################################
FROM node:18.10-alpine
FROM caddy

WORKDIR /workspace

COPY --from=builder /usr/src/app/storybook-static .
COPY --from=builder /usr/src/app/Caddyfile .

RUN npm add -g serve
CMD caddy run

CMD serve -l 80

0 comments on commit fee2bc2

Please sign in to comment.