summaryrefslogtreecommitdiffhomepage
path: root/Dockerfile
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-03-18 18:39:14 +0900
committerAdam Malczewski <[email protected]>2026-03-18 18:39:14 +0900
commitef77f6d2d6ebe11d2c1afd93314d44840f6c7d77 (patch)
treee03d9d381dad70748514e42d5356b77806d29cc9 /Dockerfile
downloadwebhook-forwarder-ef77f6d2d6ebe11d2c1afd93314d44840f6c7d77.tar.gz
webhook-forwarder-ef77f6d2d6ebe11d2c1afd93314d44840f6c7d77.zip
init
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..25622d4
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,19 @@
+# Build stage
+FROM rust:1-alpine3.21 AS builder
+
+RUN apk add --no-cache musl-dev
+
+WORKDIR /app
+COPY Cargo.toml Cargo.lock ./
+COPY src/ src/
+
+RUN cargo build --release
+
+# Production stage
+FROM scratch
+
+COPY --from=builder /app/target/release/webhook-forwarder /webhook-forwarder
+
+EXPOSE 8080
+
+ENTRYPOINT ["/webhook-forwarder"]