Introduce a multi-stage Dockerfile, docker-compose setup, and a Gitea Actions workflow to automate building and pushing images to the registry. The configuration includes an entrypoint script for persistent logging and a .dockerignore to optimize the build context.
8 lines
196 B
Bash
8 lines
196 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
mkdir -p /logs
|
|
|
|
# Run the app and tee output to both stdout (for `docker logs`) and a
|
|
# persistent log file inside the mounted volume.
|
|
exec ./emly-api 2>&1 | tee -a /logs/app.log |