Compare commits
No commits in common. "master" and "v2.12.0" have entirely different histories.
24
Dockerfile
24
Dockerfile
@ -1,24 +1,14 @@
|
|||||||
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.5.0 AS xx
|
FROM golang:1.22-alpine AS builder
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM golang:1.23-alpine3.20 AS builder
|
RUN apk add --no-cache musl-dev git gcc
|
||||||
|
|
||||||
COPY --from=xx / /
|
ADD . /src
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
WORKDIR /src
|
||||||
|
|
||||||
RUN xx-info env
|
|
||||||
|
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
|
|
||||||
ENV XX_VERIFY_STATIC=1
|
RUN cd cmd/gost && go env && go build
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN cd cmd/gost && \
|
|
||||||
xx-go build && \
|
|
||||||
xx-verify gost
|
|
||||||
|
|
||||||
FROM alpine:3.20
|
FROM alpine:3.20
|
||||||
|
|
||||||
@ -27,6 +17,6 @@ RUN apk add --no-cache iptables
|
|||||||
|
|
||||||
WORKDIR /bin/
|
WORKDIR /bin/
|
||||||
|
|
||||||
COPY --from=builder /app/cmd/gost/gost .
|
COPY --from=builder /src/cmd/gost/gost .
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/gost"]
|
ENTRYPOINT ["/bin/gost"]
|
||||||
|
Loading…
Reference in New Issue
Block a user