init
All checks were successful
release-tag / release-image (push) Successful in 4m28s

This commit is contained in:
2025-07-22 16:33:11 +02:00
parent 9c89e250c1
commit 0ada0c135d
9 changed files with 687 additions and 0 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
# -------- Dockerfile (Multi-Stage Build) --------
# 1. Builder-Stage
FROM golang:1.24-alpine AS builder
WORKDIR /app
COPY go.* ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /bin/sctradingtool
# 2. Runtime-Stage
FROM alpine:3.20
# HTTPS-Callouts in Alpine brauchen ca-certificates
RUN apk add --no-cache ca-certificates
COPY --from=builder /bin/sctradingtool /bin/sctradingtool
# Default listens on :8080 siehe main.go
EXPOSE 8080
# Environment defaults; können per compose überschrieben werden
ENV REDIS_ADDR=redis:6379 \
BLOCKLIST_MODE=slave \
HASH_NAME=bl:manual \
MASTER_URL=https://flod-proxy.send.nrw
ENTRYPOINT ["/bin/sctradingtool"]