Add Docker support with Dockerfile, entrypoint script, and CI workflows
CI / Go Tests (push) Failing after 26s
CI / Build (push) Successful in 15s
Format / gofmt (push) Successful in 5s

- 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.
This commit is contained in:
2026-06-01 02:03:17 -05:00
parent 050ec138f3
commit 34fd1a5a4d
8 changed files with 295 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/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 "$@"