summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2025-03-10 18:39:28 -0400
committerRobby Zambito <contact@robbyzambito.me>2025-03-10 19:22:18 -0400
commitd2bdac8b2f154d3d070833ffa8dca7e021c00908 (patch)
treef7397ce194dc7d81cf5110ff77a82dca10575444 /Dockerfile
Initial commitHEADmaster
1.0.0
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..28137e1
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,20 @@
+# Build stage
+FROM golang:1.24 AS builder
+
+WORKDIR /usr/src/app
+
+COPY go.mod go.sum ./
+RUN go mod download
+
+COPY . .
+RUN go build -v -o /usr/local/bin/app ./...
+
+# Final stage
+FROM debian:12-slim
+
+RUN apt-get update && apt-get install -y ca-certificates
+WORKDIR /usr/src/app
+
+COPY --from=builder /usr/local/bin/app /usr/local/bin/app
+
+CMD ["app"]