34fd1a5a4d
- Introduced a Dockerfile for building the application with Go and Node.js dependencies. - Added a docker-entrypoint.sh script to manage container execution. - Created a .dockerignore file to exclude unnecessary files from the Docker context. - Updated Makefile to include a new target for building the Docker image. - Added CI workflows for testing, formatting, and releasing artifacts in Gitea.
13 lines
296 B
Bash
13 lines
296 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
# Default to running the server with mounted config.
|
|
if [ "$#" -eq 0 ]; then
|
|
set -- server --config /config/config.yaml
|
|
elif [ "${1#-}" != "$1" ]; then
|
|
# Allow passing server flags directly, e.g. `docker run ... --config ...`.
|
|
set -- server "$@"
|
|
fi
|
|
|
|
exec scratchbox "$@"
|