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 7c8c72a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,17 @@ COPY package.json pnpm-lock.yaml ./
RUN corepack enable
RUN pnpm install --frozen-lockfile

COPY . .
COPY src ./src
COPY .storybook ./.storybook

RUN pnpm run build:storybook

######################################################################
# This stage download a simple http server and serve the application #
######################################################################
FROM node:18.10-alpine
FROM joseluisq/static-web-server:2

WORKDIR /workspace

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

RUN npm add -g serve

CMD serve -l 80

0 comments on commit 7c8c72a

Please sign in to comment.