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

ci: use static-web-server #528

Merged
merged 1 commit into from
Oct 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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