mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 14:12:36 -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 {
|
location /assets {
|
||||||
proxy_pass http://127.0.0.1:6060/assets;
|
proxy_pass http://penpot-backend:6060/assets;
|
||||||
recursive_error_pages on;
|
recursive_error_pages on;
|
||||||
proxy_intercept_errors on;
|
proxy_intercept_errors on;
|
||||||
error_page 301 302 307 = @handle_redirect;
|
error_page 301 302 307 = @handle_redirect;
|
||||||
|
@ -115,7 +115,7 @@ http {
|
||||||
|
|
||||||
location /internal/assets {
|
location /internal/assets {
|
||||||
internal;
|
internal;
|
||||||
alias /var/www/assets;
|
alias /opt/data/assets;
|
||||||
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
add_header x-internal-redirect "$upstream_http_x_accel_redirect";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,8 +137,7 @@ function build-image {
|
||||||
set -x
|
set -x
|
||||||
pushd ./docker/images;
|
pushd ./docker/images;
|
||||||
docker buildx build --platform linux/amd64 -t $docker_image:$tag -f Dockerfile.$image .;
|
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 .;
|
# docker buildx build --platform linux/arm64 -t $docker_image:$version-arm64 .;
|
||||||
popd;
|
popd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue