From 14d0ef0361873e740f006ebfcbc9eb420137e608 Mon Sep 17 00:00:00 2001 From: Hossein Abaiyani <40549604+hosseinabaiyani@users.noreply.github.com> Date: Tue, 9 May 2023 13:01:35 +0330 Subject: [PATCH] Update Dockerfile added platform --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ]