mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 07:16:06 +08:00
updated docker versions
This commit is contained in:
parent
c6beec6bfd
commit
1b10c08f55
|
@ -1,5 +1,5 @@
|
|||
#first stage - builder
|
||||
FROM golang:1.17-alpine as builder
|
||||
FROM golang:1.18.0-alpine3.15 as builder
|
||||
ARG version
|
||||
RUN apk add build-base
|
||||
WORKDIR /app
|
||||
|
@ -7,7 +7,7 @@ COPY . .
|
|||
ENV GO111MODULE=auto
|
||||
|
||||
RUN GOOS=linux CGO_ENABLED=1 go build -ldflags="-s -X 'main.version=${version}'" -o netmaker main.go
|
||||
FROM alpine:3.14.3
|
||||
FROM alpine:3.15.2
|
||||
|
||||
# add a c lib
|
||||
RUN apk add gcompat iptables wireguard-tools
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
FROM alpine:3.13.6
|
||||
FROM alpine:3.15.2
|
||||
|
||||
RUN apk add --no-cache --virtual .build-deps bash gcc musl-dev openssl go
|
||||
|
||||
RUN wget -O go.tgz https://dl.google.com/go/go1.17.1.linux-amd64.tar.gz
|
||||
RUN wget -O go.tgz https://go.dev/dl/go1.18.linux-amd64.tar.gz
|
||||
|
||||
RUN tar -C /usr/local -xzf go.tgz
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ ENV GO111MODULE=auto
|
|||
|
||||
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 /usr/local/go/bin/go build -ldflags="-w -s" -o netclient-app netclient/main.go
|
||||
|
||||
FROM alpine:3.13.6
|
||||
FROM alpine:3.15.2
|
||||
|
||||
RUN apk add gcompat iptables && mkdir -p /etc/netclient
|
||||
# set the working directory
|
||||
|
|
|
@ -3,7 +3,7 @@ FROM debian:buster as builder
|
|||
|
||||
RUN apt update -y && apt install -y wget bash gcc musl-dev openssl golang git build-essential libmnl-dev iptables
|
||||
|
||||
RUN wget -O go.tgz https://dl.google.com/go/go1.17.1.linux-amd64.tar.gz
|
||||
RUN wget -O go.tgz https://go.dev/dl/go1.18.linux-amd64.tar.gz
|
||||
|
||||
RUN tar -C /usr/local -xzf go.tgz
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ FROM debian:buster as builder
|
|||
|
||||
RUN apt update -y && apt install -y wget bash gcc musl-dev openssl golang git build-essential libmnl-dev iptables
|
||||
|
||||
RUN wget -O go.tgz https://dl.google.com/go/go1.17.1.linux-amd64.tar.gz
|
||||
RUN wget -O go.tgz https://go.dev/dl/go1.18.linux-amd64.tar.gz
|
||||
|
||||
RUN tar -C /usr/local -xzf go.tgz
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ RUN git clone https://git.zx2c4.com/wireguard-tools && \
|
|||
make && \
|
||||
make install
|
||||
|
||||
FROM alpine:3.13.6
|
||||
FROM alpine:3.15.2
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ FROM debian:buster as builder
|
|||
|
||||
RUN apt update -y && apt install -y wget bash gcc musl-dev openssl golang git build-essential libmnl-dev iptables
|
||||
|
||||
RUN wget -O go.tgz https://dl.google.com/go/go1.17.1.linux-amd64.tar.gz
|
||||
RUN wget -O go.tgz https://go.dev/dl/go1.18.linux-amd64.tar.gz
|
||||
|
||||
RUN tar -C /usr/local -xzf go.tgz
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ ENV GO111MODULE=auto
|
|||
|
||||
RUN GOOS=linux CGO_ENABLED=0 /usr/local/go/bin/go build -ldflags="-w -s -X 'main.version=${TAG}'" -o netclient-app netclient/main.go
|
||||
|
||||
FROM alpine:3.13.6
|
||||
FROM alpine:3.15.2
|
||||
|
||||
WORKDIR /root/
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ ENV GO111MODULE=auto
|
|||
|
||||
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=1 /usr/local/go/bin/go build -ldflags="-w -s" -o netmaker main.go
|
||||
|
||||
FROM alpine:3.13.6
|
||||
FROM alpine:3.15.2
|
||||
# add a c lib
|
||||
RUN apk add gcompat iptables wireguard-tools
|
||||
# set the working directory
|
||||
|
|
Loading…
Reference in a new issue