We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5db8384 commit d75f4c6Copy full SHA for d75f4c6
Dockerfile
@@ -1,19 +1,10 @@
1
FROM golang:1.23 as builder
2
3
-WORKDIR /app
4
-COPY . .
5
-
6
-# Build the Go application
7
-RUN CGO_ENABLED=0 go build -o pangolin-cloudflare-tunnel .
8
9
-# Create a minimal production image
+# Create image from scratch
10
FROM scratch
11
12
-# Copy SSL certificates for HTTPS requests
13
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
14
15
-# Copy the compiled binary
16
-COPY --from=builder /app/pangolin-cloudflare-tunnel /pangolin-cloudflare-tunnel
+COPY traefik-cloudflare-tunnel /traefik-cloudflare-tunnel
17
18
-# Set the entrypoint
19
-ENTRYPOINT [ "/pangolin-cloudflare-tunnel" ]
+ENTRYPOINT [ "/traefik-cloudflare-tunnel" ]
0 commit comments