You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
362 B

FROM golang:latest
EXPOSE 42000
# Set go bin which doesn't appear to be set already.
ENV GOPATH /go
ARG REPO_PATH=github.com/garritfra/blockchain-project
# build directories
RUN mkdir /app
RUN mkdir -p /go/src/${REPO_PATH}
ADD . /go/src/${REPO_PATH}
WORKDIR /go/src/${REPO_PATH}
# Build my app
RUN go install
RUN go build
CMD ["/go/bin/blockchain-project"]