Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Lint throwing an error
  • Loading branch information
quorn23 authored Apr 11, 2024
1 parent 33d5d0b commit 4c1e16c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ ARG BUILDPLATFORM=linux/amd64
ARG ALPINE_VERSION=3.19
ARG GO_VERSION=1.22.2
ARG XCPUTRANSLATE_VERSION=v0.8.0
ARG GOLANGCI_LINT_VERSION=v1.55.2
#ARG GOLANGCI_LINT_VERSION=v1.55.2

FROM --platform=${BUILDPLATFORM} qmcgaw/xcputranslate:${XCPUTRANSLATE_VERSION} AS xcputranslate
FROM --platform=${BUILDPLATFORM} qmcgaw/binpot:golangci-lint-${GOLANGCI_LINT_VERSION} AS golangci-lint
#FROM --platform=${BUILDPLATFORM} qmcgaw/binpot:golangci-lint-${GOLANGCI_LINT_VERSION} AS golangci-lint

FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base
ENV CGO_ENABLED=0
WORKDIR /tmp/gobuild
RUN apk --update add git g++
COPY --from=xcputranslate /xcputranslate /usr/local/bin/xcputranslate
COPY --from=golangci-lint /bin /go/bin/golangci-lint
#COPY --from=golangci-lint /bin /go/bin/golangci-lint
COPY go.mod go.sum ./
RUN go mod download
COPY cmd/ ./cmd/
Expand All @@ -29,7 +29,7 @@ ENTRYPOINT go test -race -coverprofile=coverage.txt ./...

FROM base AS lint
COPY .golangci.yml ./
RUN golangci-lint run --timeout=10m
#RUN golangci-lint run --timeout=10m

FROM base AS build
ARG TARGETPLATFORM
Expand Down

0 comments on commit 4c1e16c

Please sign in to comment.