-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dockerfile
22 lines (17 loc) · 730 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang:latest
RUN go get github.com/labstack/echo \
&& go get github.com/go-xorm/xorm \
&& go get github.com/spf13/viper \
&& go get github.com/asaskevich/govalidator \
&& go get github.com/dgrijalva/jwt-go \
&& go get github.com/sirupsen/logrus \
&& go get github.com/pangpanglabs/goutils/... \
&& go get github.com/go-sql-driver/mysql \
&& go get github.com/mattn/go-sqlite3 \
&& go get github.com/opentracing/opentracing-go \
&& go get github.com/openzipkin/zipkin-go-opentracing \
&& go get github.com/pangpanglabs/echoswagger
ADD . $GOPATH/src/github.com/pangpanglabs/echosample
RUN go test github.com/pangpanglabs/echosample/...
WORKDIR $GOPATH/src/github.com/pangpanglabs/echosample
CMD go run main.go