Skip to content
Snippets Groups Projects
Commit 50bba87d authored by Dean's avatar Dean
Browse files

add Dockerfile

parent 278a786e
No related branches found
No related tags found
No related merge requests found
FROM golang:alpine
COPY cdn-origin.go $GOPATH/src/github.com/whats-this/cdn-origin/
COPY prometheus/ $GOPATH/src/github.com/whats-this/cdn-origin/prometheus/
COPY weed/ $GOPATH/src/github.com/whats-this/cdn-origin/weed/
RUN apk add --no-cache --virtual .build-deps git && \
go-wrapper download github.com/lib/pq && \
go-wrapper download github.com/prometheus/client_golang/prometheus && \
go-wrapper download github.com/Sirupsen/logrus && \
go-wrapper download github.com/spf13/pflag && \
go-wrapper download github.com/spf13/viper && \
go-wrapper download github.com/valyala/fasthttp && \
go-wrapper install github.com/whats-this/cdn-origin && \
apk del .build-deps
WORKDIR $GOPATH/src/github.com/whats-this/cdn-origin
ENTRYPOINT ["go-wrapper", "run"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment