- .drone.yml: pnpm build frontend → go build backend → docker compose up
- .ci/Dockerfile: distroless:nonroot runtime image
- host state (/opt/sub2api/{config.yaml,compose,volumes}) stays untouched
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
6 lines
132 B
Docker
6 lines
132 B
Docker
FROM gcr.io/distroless/static-debian12:nonroot
|
|
WORKDIR /app
|
|
COPY sub2api-linux /app/sub2api
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/app/sub2api"]
|