mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 11:11:30 -04:00
28 lines
758 B
Docker
28 lines
758 B
Docker
FROM docker.io/library/golang:latest AS build
|
|
|
|
|
|
ADD . /app
|
|
|
|
WORKDIR /app/probetest
|
|
RUN go get
|
|
RUN CGO_ENABLED=0 go build -o probetest -ldflags '-extldflags "-static" -w -s' .
|
|
|
|
FROM containers.torproject.org/tpo/tpa/base-images/debian:trixie as debian-base
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
gpg \
|
|
gpg-agent \
|
|
ca-certificates \
|
|
libcap2-bin \
|
|
--no-install-recommends
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=debian-base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=debian-base /usr/share/zoneinfo /usr/share/zoneinfo
|
|
COPY --from=build /app/probetest/probetest /bin/probetest
|
|
|
|
ENTRYPOINT [ "/bin/probetest" ]
|
|
|
|
LABEL org.opencontainers.image.authors="anti-censorship-team@lists.torproject.org"
|