mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 06:02:32 -05:00
🐛 Fix static file handling on docker images.
This commit is contained in:
parent
e3c273c84b
commit
e7d6a54907
2 changed files with 3 additions and 4 deletions
|
@ -107,7 +107,7 @@ http {
|
|||
}
|
||||
|
||||
location /assets {
|
||||
proxy_pass http://127.0.0.1:6060/assets;
|
||||
proxy_pass http://penpot-backend:6060/assets;
|
||||
recursive_error_pages on;
|
||||
proxy_intercept_errors on;
|
||||
error_page 301 302 307 = @handle_redirect;
|
||||
|
@ -115,7 +115,7 @@ http {
|
|||
|
||||
location /internal/assets {
|
||||
internal;
|
||||
alias /var/www/assets;
|
||||
alias /opt/data/assets;
|
||||
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,8 +137,7 @@ function build-image {
|
|||
set -x
|
||||
pushd ./docker/images;
|
||||
docker buildx build --platform linux/amd64 -t $docker_image:$tag -f Dockerfile.$image .;
|
||||
docker tag $docker_image:$tag $docker_image:$version;
|
||||
|
||||
# docker tag $docker_image:$tag $docker_image:$version;
|
||||
# docker buildx build --platform linux/arm64 -t $docker_image:$version-arm64 .;
|
||||
popd;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue