diff options
| author | Bobby <[email protected]> | 2025-10-14 21:28:53 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-10-14 21:28:53 +0530 |
| commit | 43f074cb0b62c0ec6bf68da3484a7e8ce3e3ec9f (patch) | |
| tree | f040fc5e260f361b43709e2748e7eb4b36f83304 /Dockerfile | |
| parent | 1ecf051d63f6c69a5092d7782aabc9aa1445957d (diff) | |
| download | thunderbird-ai-compose-server-main.tar.xz thunderbird-ai-compose-server-main.zip | |
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"] |
