🐛 Fix some paths and add missed nginx config file for the storybook docker image
Some checks failed
Commit Message Check / Check Commit Message (push) Has been cancelled

This commit is contained in:
David Barragán Merino
2025-10-29 11:11:32 +01:00
parent 6076df5c80
commit 1b81ddebb4
3 changed files with 30 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ USER root
RUN set -ex; \
useradd -U -M -u 1001 -s /bin/false -d /opt/penpot penpot;
ARG BUNDLE_PATH="./bundle-frontend/storybook-static/"
ARG BUNDLE_PATH="./bundle-storybook/"
COPY $BUNDLE_PATH /var/www/
COPY ./files/nginx.storybook.conf /etc/nginx/conf.d/default.conf

View File

@@ -0,0 +1,27 @@
server {
listen 8080 default_server;
server_name _;
charset utf-8;
etag off;
gzip on;
gzip_static on;
gzip_types text/plain text/css application/javascript application/json application/vnd.api+json application/xml application/x-javascript text/xml image/svg+xml;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_min_length 256;
gzip_vary on;
error_log /dev/stderr;
access_log /dev/stdout;
root /var/www;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}