Merge pull request 'Copy the client assets over to a named volume at runtime' (#10) from copy-assets-folder into main
Reviewed-on: coop-cloud/peertube#10
This commit is contained in:
commit
e2b4d39fe2
2
abra.sh
2
abra.sh
@ -1,7 +1,7 @@
|
||||
# shellcheck disable=SC2034,SC2145
|
||||
|
||||
export NGINX_CONFIG_VERSION=v2
|
||||
export APP_ENTRYPOINT_VERSION=v1
|
||||
export APP_ENTRYPOINT_VERSION=v2
|
||||
|
||||
sub_npm() {
|
||||
abra__service_="app"
|
||||
|
@ -51,7 +51,7 @@ services:
|
||||
volumes:
|
||||
- app-data:/data
|
||||
- app-config:/config
|
||||
- app-assets:/app/client/dist
|
||||
- app-assets:/srv/client/dist
|
||||
secrets:
|
||||
- db_password
|
||||
configs:
|
||||
|
@ -30,6 +30,10 @@ if [ -z "$PEERTUBE_SMTP_ENABLED" ]; then
|
||||
file_env "PEERTUBE_SMTP_PASSWORD"
|
||||
fi
|
||||
|
||||
# Copy the client files over to a named volume
|
||||
# so that they may be served by nginx directly
|
||||
cp -ar /app/client/dist /srv/client
|
||||
|
||||
# upstream entrypoint
|
||||
# https://github.com/Chocobozzz/PeerTube/blob/66f77f63437c6774acbd72584a9839a7636ea167/support/docker/production/entrypoint.sh
|
||||
/usr/local/bin/entrypoint.sh "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user