Skip to content
🐳A multi-architecture build image for building Go projects with Dep
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Golang image with Dep

A multi-platform image for golang dep tool.

Build Status Platform Platform Platform

How to Build

Assuming that you have Docker up and running, run the following commands:

git clone
cd golang-dep
docker build -t goland-dep .

How to use

This image intended to be used as a build image for building your Golang applications using Docker. Here is an example of a Docker file for building one.

FROM moikot/golang-dep as build-env



RUN dep ensure -vendor-only

# Compile independent executable
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /bin/main .

FROM scratch

COPY --from=build-env /bin/main /

ENTRYPOINT ["/main"]
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.