Building Go apps with private gitlab modules in Docker
问题 I am trying to build my go apps on a docker file. Inside my go.mod there is private package that needs authentication/ssh. This question is similar to Building Go apps with private modules in Docker, but in my case is i have to pull package from gitlab not from github . Here is my dockerfile: # builder image FROM golang:1.14.11-alpine AS builder # specific directory for build process WORKDIR /usr/src/build # copying the source code # to the current working directory COPY . . RUN apk add --no