aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-10-14 21:28:53 +0530
committerGitHub <[email protected]>2025-10-14 21:28:53 +0530
commit43f074cb0b62c0ec6bf68da3484a7e8ce3e3ec9f (patch)
treef040fc5e260f361b43709e2748e7eb4b36f83304
parent1ecf051d63f6c69a5092d7782aabc9aa1445957d (diff)
downloadthunderbird-ai-compose-server-main.tar.xz
thunderbird-ai-compose-server-main.zip
Add Dockerfile for building and running the serverHEADmain
-rw-r--r--Dockerfile23
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"]