From 380d993b6d8f89c941e4b77c865bf29d9549b496 Mon Sep 17 00:00:00 2001 From: wood chen Date: Tue, 29 Oct 2024 23:14:57 +0800 Subject: [PATCH] refactor(Dockerfile): standardize Dockerfile structure and remove unused platform argument --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4dec255..67604b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ -FROM --platform=$TARGETPLATFORM alpine:latest +FROM alpine:latest +ARG TARGETARCH WORKDIR /app -COPY proxy-go.$TARGETARCH /app/proxy-go +COPY proxy-go.${TARGETARCH} /app/proxy-go RUN mkdir -p /app/data && \ chmod +x /app/proxy-go && \