test me pls
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -1,6 +1,5 @@
|
||||
## lint image
|
||||
## current as of 2022-01-25
|
||||
FROM golangci/golangci-lint:latest AS linter
|
||||
FROM golangci/golangci-lint:v1.50.1
|
||||
|
||||
RUN mkdir -p /build
|
||||
WORKDIR /build
|
||||
@@ -8,19 +7,7 @@ COPY ./ ./
|
||||
RUN golangci-lint run
|
||||
|
||||
## build image:
|
||||
# this is golang:1.17.6-buster as of 2022-01-27
|
||||
FROM golang@sha256:52a48e0239f4d645b20ac268a60361703afe7feb2df5697fa89f72052cb87a3e AS builder
|
||||
#FROM golang:1.16-buster AS builder
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
RUN apt update && apt install -y make bzip2 curl unzip
|
||||
|
||||
# install newer protoc than what comes with buster
|
||||
ENV PB_REL https://github.com/protocolbuffers/protobuf/releases
|
||||
RUN curl -LO $PB_REL/download/v3.19.0/protoc-3.19.0-linux-x86_64.zip && \
|
||||
unzip protoc-3.19.0-linux-x86_64.zip -d /usr/local
|
||||
|
||||
RUN mkdir -p /build
|
||||
FROM sneak/mfer-build AS builder
|
||||
WORKDIR /build
|
||||
|
||||
COPY go.mod .
|
||||
|
||||
Reference in New Issue
Block a user