Skip to content

Commit

Permalink
feat(#390): run storybook in dev mode (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Feb 7, 2022
1 parent 3b6690c commit 389ec06
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 5 additions & 9 deletions .docker/Dockerfile.storybook
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM uselagoon/node-14-builder:latest as builder
FROM amazeeio/node:14

COPY . /app/

Expand All @@ -15,13 +15,9 @@ ENV GITHUB_CLIENT_ID ${GITHUB_CLIENT_ID}
ENV GITHUB_CLIENT_SECRET ${GITHUB_CLIENT_SECRET}
ENV OAUTH_CLIENT_ID ${OAUTH_CLIENT_ID}

RUN npx nuxt storybook build

FROM uselagoon/nginx:latest

COPY --from=builder /app/storybook-static /app/
ENV HOST 0.0.0.0
EXPOSE 3000

COPY nginx.conf /etc/nginx/conf.d/app.conf
WORKDIR /app

ENV HOST 0.0.0.0
EXPOSE 8080
CMD ["npx", "nuxt", "storybook", "-p", "3000"]
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ services:
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
labels:
lagoon.type: nginx
lando.type: nginx
lagoon.type: node
lando.type: node
volumes:
- ./dist:/app:delegated
environment:
LAGOON_LOCALDEV_HTTP_PORT: 8080
LAGOON_LOCALDEV_HTTP_PORT: 3003
LAGOON_ROUTE: http://storybook-demo-druxtjs-org.docker.amazee.io

networks:
Expand Down

0 comments on commit 389ec06

Please sign in to comment.