1
0

go tidy + missing env variables for build

This commit is contained in:
2022-05-07 12:04:42 +02:00
parent 22256fda6b
commit 82bdc2b921
3 changed files with 5 additions and 4 deletions

View File

@ -25,15 +25,15 @@ RUN mkdir -p /usr/share/mbrola/
# setting up builder
FROM golang:1.15.6-alpine AS builder
RUN apk add --no-cache git
# compiling the go project
FROM builder as builder2
ENV GO111MODULE=on \
CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64
WORKDIR /src
# compiling the go project
FROM builder as builder2
COPY go.mod go.sum ./
RUN go mod download
COPY main.go ./