From 43f074cb0b62c0ec6bf68da3484a7e8ce3e3ec9f Mon Sep 17 00:00:00 2001 From: Bobby <30593201+luciferreeves@users.noreply.github.com> Date: Tue, 14 Oct 2025 21:28:53 +0530 Subject: Add Dockerfile for building and running the server --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile 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"] -- cgit v1.2.3