bump go 1.18.2

This commit is contained in:
Ben
2022-05-26 18:09:48 +02:00
parent 7958bb9664
commit f09088308d
3 changed files with 81 additions and 45 deletions
+5 -4
View File
@@ -1,15 +1,16 @@
FROM golang:latest as builder
FROM golang:1.18 as builder
ENV GO111MODULE=on
ENV GOPATH=/root/go
RUN mkdir -p /root/go/src
COPY dyndns /root/go/src/dyndns
WORKDIR /root/go/src/dyndns
RUN go mod download
RUN go mod verify
# temp sqlite3 error fix
ENV CGO_CFLAGS "-g -O2 -Wno-return-local-addr"
RUN go mod tidy
RUN GOOS=linux go build -o /root/go/bin/dyndns && go test -v
FROM debian:bullseye-slim
FROM debian:11-slim
RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
apt-get install -q -y bind9 dnsutils curl && \