Skip to content

Commit

Permalink
Add storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
blyme committed Oct 3, 2024
1 parent 870a3ba commit 53a1a65
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,12 @@ FROM proxy AS nextjs
COPY /nextjs /

ENV NGINX_PROXY_PASS http://app:3000

Check warning on line 44 in Dockerfile

View workflow job for this annotation

GitHub Actions / HTTPS Proxy (nextjs, linux/arm64)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 44 in Dockerfile

View workflow job for this annotation

GitHub Actions / HTTPS Proxy (nextjs, linux/amd64)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

##
# Storybook
##
FROM proxy AS storybook

COPY /storybook /

ENV NGINX_PROXY_PASS http://app:6006

Check warning on line 53 in Dockerfile

View workflow job for this annotation

GitHub Actions / HTTPS Proxy (storybook, linux/arm64)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

Check warning on line 53 in Dockerfile

View workflow job for this annotation

GitHub Actions / HTTPS Proxy (storybook, linux/amd64)

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
18 changes: 18 additions & 0 deletions context/storybook/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
server {

include include.d/ssl.conf;

root /var/www/web;

location / {
proxy_pass ${NGINX_PROXY_PASS};
}

location /__webpack-hmr {
proxy_pass ${NGINX_PROXY_PASS};
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $host;
}
}

0 comments on commit 53a1a65

Please sign in to comment.