mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-29 14:26:18 +00:00
Update Dockerfile
added platform
This commit is contained in:
parent
3f214545d7
commit
14d0ef0361
1 changed files with 2 additions and 2 deletions
|
@ -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" ]
|
||||
ENTRYPOINT [ "/app/x-ui" ]
|
||||
|
|
Loading…
Reference in a new issue