diff --git a/Dockerfile b/Dockerfile index 367522c..997574a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ ARG AZLINUX_BASE_VERSION=master -FROM 707767160287.dkr.ecr.us-east-1.amazonaws.com/gen3/golang-build-base:${AZLINUX_BASE_VERSION} as base -# FROM quay.io/cdis/golang-build-base:${AZLINUX_BASE_VERSION} as base +#FROM 707767160287.dkr.ecr.us-east-1.amazonaws.com/gen3/golang-build-base:${AZLINUX_BASE_VERSION} as base +FROM --platform=$BUILDPLATFORM quay.io/cdis/golang-build-base:${AZLINUX_BASE_VERSION} as base ARG TARGETOS ARG TARGETARCH @@ -16,7 +16,7 @@ FROM base as builder WORKDIR $GOPATH/src/github.com/uc-cdis/cohort-middleware/ COPY go.mod go.sum ./ -RUN go mod download -x +RUN go mod download COPY . .