fix(): buildx cannot copy to non-directory

pull/74/head
Magicalex 2021-02-05 01:35:29 +01:00
parent bd86284a9b
commit 3c5c131426
No known key found for this signature in database
GPG Key ID: A89B48B1788C3CB5
6 changed files with 12 additions and 11 deletions

View File

@ -1,7 +1,6 @@
MIT License MIT License
Copyright (c) 2016-2020 mondedie/flarum Copyright (c) 2021 mondedie/flarum
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -19,7 +19,8 @@
- Multi-platform image: `linux/386`, `linux/amd64`, `linux/arm/v6`, `linux/arm/v7`, `linux/arm64` - Multi-platform image: `linux/386`, `linux/amd64`, `linux/arm/v6`, `linux/arm/v7`, `linux/arm64`
- Lightweight & secure image - Lightweight & secure image
- Based on Alpine Linux with **nginx** and **PHP 7.3** - Based on Alpine Linux 3.13
- **nginx** and **PHP 7.4**
- Latest [Flarum Core](https://github.com/flarum/core) (v0.1.0-beta.15) - Latest [Flarum Core](https://github.com/flarum/core) (v0.1.0-beta.15)
- MySQL/Mariadb driver - MySQL/Mariadb driver
- OPCache extension configured - OPCache extension configured
@ -36,7 +37,7 @@
- **/flarum/app/public/assets** : Flarum assets directory - **/flarum/app/public/assets** : Flarum assets directory
- **/flarum/app/extensions** : Flarum extension directory - **/flarum/app/extensions** : Flarum extension directory
- **/etc/nginx/conf.d** : Nginx location directory - **/etc/nginx/flarum** : Nginx location directory
### Environment variables ### Environment variables
@ -95,7 +96,7 @@ services:
volumes: volumes:
- /mnt/docker/flarum/assets:/flarum/app/public/assets - /mnt/docker/flarum/assets:/flarum/app/public/assets
- /mnt/docker/flarum/extensions:/flarum/app/extensions - /mnt/docker/flarum/extensions:/flarum/app/extensions
- /mnt/docker/flarum/nginx:/etc/nginx/conf.d - /mnt/docker/flarum/nginx:/etc/nginx/flarum
ports: ports:
- 80:8888 - 80:8888
depends_on: depends_on:
@ -168,7 +169,7 @@ services:
volumes: volumes:
- /mnt/docker/flarum/assets:/flarum/app/public/assets - /mnt/docker/flarum/assets:/flarum/app/public/assets
- /mnt/docker/flarum/extensions:/flarum/app/extensions - /mnt/docker/flarum/extensions:/flarum/app/extensions
- /mnt/docker/flarum/nginx:/etc/nginx/conf.d - /mnt/docker/flarum/nginx:/etc/nginx/flarum
``` ```
This example install php7-gmp php7-session and php7-brotli with apk This example install php7-gmp php7-session and php7-brotli with apk
@ -198,8 +199,8 @@ docker exec -ti flarum extension list
### Custom vhost flarum nginx ### Custom vhost flarum nginx
File to change the vhost flarum `/etc/nginx/conf.d/custom-vhost-flarum.conf` File to change the vhost flarum `/etc/nginx/flarum/custom-vhost-flarum.conf`
To use file custom-vhost-flarum.conf add volume `/etc/nginx/conf.d` To use file custom-vhost-flarum.conf add volume `/etc/nginx/flarum`
### Custom composer repositories ### Custom composer repositories

View File

@ -57,6 +57,6 @@ http {
fastcgi_param REMOTE_ADDR $http_x_real_ip; fastcgi_param REMOTE_ADDR $http_x_real_ip;
} }
include /etc/nginx/conf.d/custom-vhost-flarum.conf; include /etc/nginx/flarum/custom-vhost-flarum.conf;
} }
} }

View File

@ -1,4 +1,5 @@
zend_extension=opcache.so zend_extension=opcache.so
opcache.enable=1 opcache.enable=1
opcache.enable_cli=1 opcache.enable_cli=1
opcache.fast_shutdown=1 opcache.fast_shutdown=1

View File

@ -66,12 +66,12 @@ if [ -f '/flarum/app/extensions/composer.repositories.txt' ]; then
fi fi
# Custom vhost flarum nginx # Custom vhost flarum nginx
if [ ! -e '/etc/nginx/conf.d/custom-vhost-flarum.conf' ]; then if [ ! -e '/etc/nginx/flarum/custom-vhost-flarum.conf' ]; then
echo '# Example: echo '# Example:
# fix for flagrow/sitemap (https://github.com/flagrow/sitemap) # fix for flagrow/sitemap (https://github.com/flagrow/sitemap)
# location = /sitemap.xml { # location = /sitemap.xml {
# try_files $uri $uri/ /index.php?$query_string; # try_files $uri $uri/ /index.php?$query_string;
# }' > /etc/nginx/conf.d/custom-vhost-flarum.conf # }' > /etc/nginx/flarum/custom-vhost-flarum.conf
fi fi
# if installation was performed before # if installation was performed before