check / check (push) Successful in 12s
The root Dockerfile builds the only image; Dockerfile.backend is gone. Its stages: lint, a Go stage that runs the tests and builds netwatch-server, the node stage, and an nginx runtime. nginx serves dist/ on 8080 and proxies /api/ and /.well-known/healthcheck to the backend on 127.0.0.1:8081. bin/entrypoint.sh starts both, turns TERM or INT into a stop of both, and exits non-zero when either exits on its own. The backend runs as user netwatch and keeps reports on the /data volume. New setting BIND_ADDRESS (empty: every interface). STOPSIGNAL is SIGTERM, since the nginx image's SIGQUIT would miss the entrypoint. script/docker is the org model verbatim. Model: opus-5-5
31 lines
561 B
Makefile
31 lines
561 B
Makefile
# Thin shims; the implementations live in backend/script/ (see the
|
|
# Entrypoints section of README.md). There is no check, hooks or docker
|
|
# target here: the root Makefile's check covers this directory, its
|
|
# hooks target installs the repo's only pre-commit hook, and its docker
|
|
# target builds the one image, which contains this backend.
|
|
|
|
.PHONY: all build test lint fmt fmt-check run clean
|
|
|
|
all: build
|
|
|
|
build:
|
|
@script/build
|
|
|
|
test:
|
|
@script/test
|
|
|
|
lint:
|
|
@script/lint
|
|
|
|
fmt:
|
|
@script/fmt
|
|
|
|
fmt-check:
|
|
@script/fmt-check
|
|
|
|
run:
|
|
@script/run
|
|
|
|
clean:
|
|
@script/clean
|