feat: dockerize and deploy Storybook
This commit is contained in:
1 parent
d18e3c3380
commit
4d597a1650
5 files changed
+123
No files matched your search
+15
@@ -0,0 +1,15 @@
|
||||
FROM node:24-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
COPY packages ./packages
|
||||
RUN npm ci
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
RUN npm run build-storybook
|
||||
|
||||
FROM nginx:1.29-alpine AS service
|
||||
COPY --from=build /app/storybook-static /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
Reference in new issue
Block a user