Skip to content

Commit d75f4c6

Browse files
committed
Update Dockerfile
1 parent 5db8384 commit d75f4c6

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Dockerfile

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,10 @@
11
FROM golang:1.23 as builder
22

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
3+
# Create image from scratch
104
FROM scratch
115

12-
# Copy SSL certificates for HTTPS requests
136
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
147

15-
# Copy the compiled binary
16-
COPY --from=builder /app/pangolin-cloudflare-tunnel /pangolin-cloudflare-tunnel
8+
COPY traefik-cloudflare-tunnel /traefik-cloudflare-tunnel
179

18-
# Set the entrypoint
19-
ENTRYPOINT [ "/pangolin-cloudflare-tunnel" ]
10+
ENTRYPOINT [ "/traefik-cloudflare-tunnel" ]

0 commit comments

Comments
 (0)