From e4679043044929c7f1a2b7382d6863217163bc3a Mon Sep 17 00:00:00 2001 From: Para Dox Date: Sat, 14 Jun 2025 13:20:29 +0700 Subject: [PATCH] patch sonic (properly) --- sonic/sonic.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonic/sonic.Dockerfile b/sonic/sonic.Dockerfile index feed295e..1ec75c31 100644 --- a/sonic/sonic.Dockerfile +++ b/sonic/sonic.Dockerfile @@ -9,6 +9,8 @@ RUN apt-get update && apt-get install -y git musl-dev make RUN cd /go && git clone ${REPO:-https://github.com/0xsoniclabs/sonic.git} sonic && cd sonic && git fetch --tags +WORKDIR /go/sonic + RUN if [ -n "$COMMIT" ]; then \ git checkout -b ${VERSION} ${COMMIT}; \ else \ @@ -25,7 +27,6 @@ RUN if [ -n "$PATCH" ]; then \ echo "No patch file provided. Skipping."; \ fi -WORKDIR /go/sonic ARG GOPROXY RUN go mod download