Skip to content

Commit

Permalink
chore(#439): update storybook container
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Aug 9, 2022
1 parent 93606dd commit 0e95059
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .docker/Dockerfile.storybook
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM amazeeio/node:14

COPY . /app/
COPY ./nuxt/ /app/

RUN npm install --legacy-peer-deps
RUN yarn

ARG GITHUB_CLIENT_ID
ARG GITHUB_CLIENT_SECRET
Expand All @@ -17,4 +17,4 @@ EXPOSE 3000

WORKDIR /app

CMD ["npx", "nuxt", "storybook", "-p", "3000"]
CMD ["yarn", "storybook", "-p", "3000"]
38 changes: 19 additions & 19 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,25 +93,25 @@ services:
# LAGOON_LOCALDEV_HTTP_PORT: 8080
# LAGOON_ROUTE: http://demo-druxtjs-org.docker.amazee.io

# storybook:
# networks:
# - amazeeio-network
# - default
# build:
# context: ./nuxt
# dockerfile: ../.docker/Dockerfile.storybook
# args:
# GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
# GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
# OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
# labels:
# lagoon.type: node
# lando.type: node
# volumes:
# - ./nuxt/dist:/app:delegated
# environment:
# LAGOON_LOCALDEV_HTTP_PORT: 3003
# LAGOON_ROUTE: http://storybook-demo-druxtjs-org.docker.amazee.io
storybook:
networks:
- amazeeio-network
- default
build:
context: .
dockerfile: .docker/Dockerfile.storybook
args:
GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID}
GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET}
OAUTH_CLIENT_ID: ${OAUTH_CLIENT_ID}
labels:
lagoon.type: node
lando.type: node
volumes:
- ./nuxt/dist:/app:delegated
environment:
LAGOON_LOCALDEV_HTTP_PORT: 3003
LAGOON_ROUTE: http://storybook-demo-druxtjs-org.docker.amazee.io

networks:
amazeeio-network:
Expand Down

0 comments on commit 0e95059

Please sign in to comment.