diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2f31c83 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM golang:1.25 AS builder + +WORKDIR /thunderbird-ai-compose-server + +RUN apt-get update && apt-get install -y gcc libc6-dev make git + +ENV CGO_ENABLED=1 + +COPY go.mod go.sum* ./ +RUN go mod download + +COPY . . +RUN go build -o thunderbird-ai-compose-server + +FROM debian:bookworm-slim + +WORKDIR /thunderbird-ai-compose-server + +RUN apt-get update && apt-get install -y ca-certificates tzdata && rm -rf /var/lib/apt/lists/* + +COPY --from=builder /thunderbird-ai-compose-server/thunderbird-ai-compose-server . + +CMD ["./thunderbird-ai-compose-server"] |
