This commit is contained in:
Sebastian
2025-03-17 04:36:11 +01:00
parent 247d64bed5
commit 62b049b2e1
2 changed files with 5 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ services:
build: build:
context: ./sonic context: ./sonic
dockerfile: Dockerfile dockerfile: Dockerfile
args:
VERSION: ${SONIC_VERSION:-v2.0.3}
stop_grace_period: 3m stop_grace_period: 3m
volumes: volumes:
- "sonic:/var/sonic" - "sonic:/var/sonic"

View File

@@ -7,9 +7,11 @@
FROM golang:1.22 as builder FROM golang:1.22 as builder
ARG VERSION
RUN apt-get update && apt-get install -y git musl-dev make 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 WORKDIR /go/Sonic