services/templates/gotosocial/entrypoint.sh.gotmpl
Dan Anglin 042f3e2364
fix: build GTS docker image from base Alpine image
Changes:

- Update the Dockerfile template to build the GTS image from alpine:3.17.
- Add logic to download and verify GTS packages.
- Allow the Download target to be more forgiving for a service that does not need to download any files.
- The Download target is now a dependency to the Render target for all services that aren't named 'compose'.
- Update the path to the web files in the GTS config file.
- Update the entrypoint to use the correct path of the GTS executable file.

Chores:

- Remove unused DockerImageDigest setting from GTS config.
2023-02-26 17:14:39 +00:00

14 lines
422 B
Bash

#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
# Move the dynamic traefik config to the shared volume
if [ -f /flow/gts/tmp/traefik_gotosocial.yaml ]; then
mv /flow/gts/tmp/traefik_gotosocial.yaml {{ .Traefik.SharedMountPoint }}/dynamic/traefik_gotosocial.yaml
fi
mkdir -p {{ .GoToSocial.DataContainerDirectory }}/database
exec gotosocial --config-path /flow/gts/config/config.yaml server start