Skip to content

Commit

Permalink
support building using go modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Sargent authored and kelindar committed May 7, 2019
1 parent 7fd7c21 commit 19e6113
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM golang:alpine AS builder
MAINTAINER Roman Atachiants "[email protected]"

# Copy the directory into the container.
RUN mkdir -p /go/src/github.com/emitter-io/emitter/
WORKDIR /go/src/github.com/emitter-io/emitter/
ADD . /go/src/github.com/emitter-io/emitter/
# Copy the directory into the container outside of the gopath
RUN mkdir -p /go-build/src/github.com/emitter-io/emitter/
WORKDIR /go-build/src/github.com/emitter-io/emitter/
ADD . /go-build/src/github.com/emitter-io/emitter/

# Download and install any required third party dependencies into the container.
RUN apk add --no-cache g++ \
RUN apk add --no-cache git g++ \
&& go install \
&& apk del g++

Expand Down

0 comments on commit 19e6113

Please sign in to comment.