Skip to content
Snippets Groups Projects
Commit 43d520ce authored by Ridhwan Ikhwanto's avatar Ridhwan Ikhwanto
Browse files

Switch to Alpine for builder

parent 80e0174a
No related branches found
No related tags found
No related merge requests found
FROM golang:1.17 AS builder
FROM alpine:3.14 AS builder
RUN apk add --update go git
WORKDIR /builder
RUN git clone -b v1.1.0 https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/
WORKDIR /builder/snowflake/proxy
RUN go get
RUN go build -ldflags "-linkmode external -extldflags -static" -o proxy .
RUN go build -o proxy .
FROM alpine:3.14
COPY --from=builder /builder/snowflake/proxy/proxy /proxy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment