We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6052a20 commit 0ab62d0Copy full SHA for 0ab62d0
Dockerfile
@@ -17,11 +17,16 @@ RUN go mod download
17
# Build the application
18
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o proxy-server .
19
20
+# Intermediate stage to include nc
21
+FROM alpine:latest AS nc-builder
22
+RUN apk add --no-cache netcat-openbsd
23
+
24
# Final stage
25
FROM scratch
26
WORKDIR /app
27
COPY --from=builder /build/proxy-server .
28
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
29
+COPY --from=nc-builder /bin/nc /bin/nc
30
31
EXPOSE 1080
32
CMD ["./proxy-server"]
0 commit comments