summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-05-11 18:06:20 -0600
committermo khan <mo@mokhan.ca>2025-05-11 21:21:38 -0600
commitcb1a58c1256d48d2922b8fad3e5a4ea8d61e773d (patch)
tree29ccc5665082f73f982c1e7dde3c26ca33c21682
parent724886d593b9d0a24cc537ecdd3f1492dc1af388 (diff)
chore: slim down docker build context
-rw-r--r--.dockerignore12
-rw-r--r--Dockerfile2
2 files changed, 13 insertions, 1 deletions
diff --git a/.dockerignore b/.dockerignore
new file mode 100644
index 0000000..7a56d02
--- /dev/null
+++ b/.dockerignore
@@ -0,0 +1,12 @@
+**/*_test.go
+/*.md
+/*file
+/.dockerignore
+/.env*
+/.git*
+/.runway/
+/.tool-versions
+/log/
+/tags*
+/test/
+/tmp/
diff --git a/Dockerfile b/Dockerfile
index 7a4d486..8be1609 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,7 @@ FROM golang:1.24.0 AS build
ENV CGO_ENABLED=0
WORKDIR /app
COPY . ./
-RUN make build && mv ./sparkled /bin/sparkled
+RUN go build -o /bin/sparkled ./cmd/sparkled/main.go
FROM envoyproxy/envoy:v1.33-latest
ENV BIND_ADDR=":8080"