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.
21 lines
446 B
21 lines
446 B
FROM golang:alpine as builder |
|
|
|
# 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 && mkdir -p /go/src/${REPO_PATH} |
|
ADD . /go/src/${REPO_PATH} |
|
WORKDIR /go/src/${REPO_PATH} |
|
|
|
# Build my app |
|
RUN go install && go build |
|
|
|
|
|
FROM alpine:latest |
|
COPY --from=builder /go/bin/blockchain-project /usr/local/bin |
|
EXPOSE 42000 |
|
CMD ["blockchain-project"] |
|
|
|
|