try same OS for build/run images, per feedback #2

Manually merged
sneak merged 5 commits from sneak/fixdocker into master 2020-10-03 02:20:30 +00:00
Showing only changes of commit 93f2bfef4d - Show all commits

View File

@ -7,15 +7,9 @@ COPY ./ ./
RUN golangci-lint run RUN golangci-lint run
## build image: ## build image:
#ARG GO_VERSION=1.15
FROM golang:1.15-buster AS builder FROM golang:1.15-buster AS builder
RUN mkdir /user && \ RUN apt update && apt install -y make bzip2
echo 'nobody:x:65534:65534:nobody:/:' > /user/passwd && \
echo 'nobody:x:65534:' > /user/group
RUN apk add --no-cache ca-certificates git bzip2 make gcc libc-dev
#RUN GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.31.0
RUN mkdir -p /build RUN mkdir -p /build
WORKDIR /build WORKDIR /build