Files
scratchbox/docker-entrypoint.sh
T
s1d3sw1ped 34fd1a5a4d
CI / Go Tests (push) Failing after 26s
CI / Build (push) Successful in 15s
Format / gofmt (push) Successful in 5s
Add Docker support with Dockerfile, entrypoint script, and CI workflows
- 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.
2026-06-01 02:03:17 -05:00

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 "$@"