Skip to content

Commit 24d415e

Browse files
committed
storybook update try
1 parent 90a65c6 commit 24d415e

3 files changed

Lines changed: 19 additions & 21 deletions

File tree

Dockerfile.storybook

Lines changed: 0 additions & 20 deletions
This file was deleted.

client/Dockerfile.storybook

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
FROM node:20-alpine AS build
2+
WORKDIR /app
3+
4+
COPY client/package.json client/package-lock.json* client/yarn.lock* client/pnpm-lock.yaml* ./client/
5+
WORKDIR /app/client
6+
7+
RUN npm ci
8+
9+
COPY client/ /app/client/
10+
11+
RUN npm run build-storybook
12+
13+
FROM nginx:alpine
14+
COPY --from=build /app/client/storybook-static /usr/share/nginx/html
15+
16+
RUN printf 'server { listen 80; server_name _; root /usr/share/nginx/html; index index.html; location / { try_files $uri $uri/ /index.html; } }' > /etc/nginx/conf.d/default.conf
17+
18+
EXPOSE 80

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"test:e2e:headed": "npx playwright test --headed",
2828
"test:e2e:interactive": "npx playwright codegen http://localhost:8082",
2929
"test:e2e:chromium": "npx playwright test --project=chromium --headed",
30-
"build-storybook": "storybook build"
30+
"build-storybook": "storybook build --output-dir storybook-static --static-dir public --docs --base-path /storybook/"
3131
},
3232
"lint-staged": {
3333
"*.{vue,js,jsx,ts,tsx}": [

0 commit comments

Comments
 (0)