diff --git a/Dockerfile b/Dockerfile index 6de35d96..6114d548 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ #Build latest x-ui from source -FROM golang:1.20.4-alpine AS builder +FROM --platform=$BUILDPLATFORM golang:1.20.4-alpine AS builder WORKDIR /app ARG TARGETARCH RUN apk --no-cache --update add build-base gcc wget unzip @@ -17,4 +17,4 @@ RUN apk add ca-certificates tzdata COPY --from=builder /app/build/ /app/ VOLUME [ "/etc/x-ui" ] -ENTRYPOINT [ "/app/x-ui" ] \ No newline at end of file +ENTRYPOINT [ "/app/x-ui" ]