Update Dockerfile

added platform
This commit is contained in:
Hossein Abaiyani 2023-05-09 13:01:35 +03:30 committed by GitHub
parent 3f214545d7
commit 14d0ef0361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#Build latest x-ui from source #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 WORKDIR /app
ARG TARGETARCH ARG TARGETARCH
RUN apk --no-cache --update add build-base gcc wget unzip RUN apk --no-cache --update add build-base gcc wget unzip