patch sonic (properly)
This commit is contained in:
@@ -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
|
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 \
|
RUN if [ -n "$COMMIT" ]; then \
|
||||||
git checkout -b ${VERSION} ${COMMIT}; \
|
git checkout -b ${VERSION} ${COMMIT}; \
|
||||||
else \
|
else \
|
||||||
@@ -25,7 +27,6 @@ RUN if [ -n "$PATCH" ]; then \
|
|||||||
echo "No patch file provided. Skipping."; \
|
echo "No patch file provided. Skipping."; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
WORKDIR /go/sonic
|
|
||||||
|
|
||||||
ARG GOPROXY
|
ARG GOPROXY
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|||||||
Reference in New Issue
Block a user