File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 44# GLOBAL
55 ARG APP_UID=1000 \
66 APP_GID=1000 \
7- BUILD_SRC=https://github.com/ netbirdio/netbird.git \
7+ BUILD_SRC=netbirdio/netbird.git \
88 BUILD_ROOT="/go/netbird/management /go/netbird/relay /go/netbird/signal" \
99 GO_VERSION=1.25
1010
2323 BUILD_ROOT
2424
2525 RUN set -ex; \
26- git clone ${BUILD_SRC} -b v${APP_VERSION}; \
27- sed -i 's/"development"/"v' ${APP_VERSION}'"/' /go/netbird/version/version.go;
26+ eleven git clone ${BUILD_SRC} v${APP_VERSION}; \
27+ sed -i 's/"development"/"v' ${APP_VERSION}'"/' /go/netbird/version/version.go; \
28+ sed -i 's|"gorm.io/driver/sqlite"|"github.com/glebarez/sqlite"|' /go/netbird/management/server/geolocation/database.go; \
29+ sed -i 's|"gorm.io/driver/sqlite"|"github.com/glebarez/sqlite"|' /go/netbird/management/server/geolocation/store.go;
2830
2931 RUN set -ex; \
3032 for BUILD in ${BUILD_ROOT}; do \
3133 cd ${BUILD}; \
3234 BUILD_BIN="${BUILD}/$(echo ${BUILD} | awk -F '/' '{print $4}')" ; \
33- go mod tidy; \
3435 eleven go build ${BUILD_BIN} main.go; \
3536 eleven distroless ${BUILD_BIN}; \
3637 done; \
3940# :: CUSTOM MANAGEMENT
4041 FROM 11notes/go:${GO_VERSION} AS management
4142 COPY ./build/go/management /go/management
42- ENV CGO_ENABLED=0
4343 ARG BUILD_BIN=/go/management/management
4444
4545 RUN set -ex; \
5050# :: DASHBOARD
5151 FROM 11notes/go:${GO_VERSION} AS dashboard
5252 COPY ./build/go/dashboard /go/dashboard
53- ENV CGO_ENABLED=0
5453 ARG BUILD_BIN=/go/dashboard/dashboard
5554
5655 RUN set -ex; \
You can’t perform that action at this time.
0 commit comments