?
This commit is contained in:
@@ -4,6 +4,8 @@ services:
|
||||
build:
|
||||
context: ./sonic
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
VERSION: ${SONIC_VERSION:-v2.0.3}
|
||||
stop_grace_period: 3m
|
||||
volumes:
|
||||
- "sonic:/var/sonic"
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
|
||||
FROM golang:1.22 as builder
|
||||
|
||||
ARG VERSION
|
||||
|
||||
RUN apt-get update && apt-get install -y git musl-dev make
|
||||
|
||||
RUN cd /go && git clone https://github.com/Fantom-foundation/Sonic.git && cd Sonic && git fetch --tags && git checkout -b v2.0.1 tags/v2.0.1
|
||||
RUN cd /go && git clone https://github.com/0xsoniclabs/sonic.git && cd Sonic && git fetch --tags && git checkout -b ${VERSION} tags/${VERSION}
|
||||
|
||||
WORKDIR /go/Sonic
|
||||
|
||||
|
||||
Reference in New Issue
Block a user