diff --git a/.docker/Dockerfile.storybook b/.docker/Dockerfile.storybook index 5149be3a..be4be06d 100644 --- a/.docker/Dockerfile.storybook +++ b/.docker/Dockerfile.storybook @@ -1,4 +1,4 @@ -FROM uselagoon/node-14-builder:latest as builder +FROM amazeeio/node:14 COPY . /app/ @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml index ea6bb515..26a04fdf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: