Skip to content

Commit

Permalink
Merge pull request #5 from OSSystems/development
Browse files Browse the repository at this point in the history
Project: add dockerfile
  • Loading branch information
gustavosbarreto authored Feb 25, 2019
2 parents 872e0a6 + 2300b55 commit 60cf256
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:1.11-alpine3.8 as builder

RUN apk add build-base
RUN apk --update --no-cache add git openssh make
RUN go get -u github.com/Masterminds/glide

ADD . /go/src/github.com/OSSystems/cdn
WORKDIR /go/src/github.com/OSSystems/cdn

RUN glide install
RUN go build

FROM alpine:3.7

COPY --from=builder /go/src/github.com/OSSystems/cdn/cdn /usr/local/bin/

ENTRYPOINT ["/usr/local/bin/cdn"]

0 comments on commit 60cf256

Please sign in to comment.