forked from buildertools/entropy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.df
25 lines (20 loc) · 900 Bytes
/
local.df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# This Dockerfile is used for local development and is intended for use with
# a compose environment which weaves in the source via volume at
# /go/src/github.com/buildertools/entropy.
# This image uses gulpjs to watch those source files, build them on changes,
# run tests, gofmt, etc, and finally relaunch the service if successful.
#
FROM golang:alpine
RUN apk --update add --no-cache git nodejs
RUN npm install --global gulp
ENV GOPATH=/go/ PATH=$PATH:/go/bin GODEBUG=netdns=cgo
RUN mkdir -p /go/src/github.com/buildertools/entropy && mkdir -p /go/bin
RUN go get github.com/codegangsta/cli && \
go get gopkg.in/yaml.v2 && \
go get github.com/samalba/dockerclient && \
go get github.com/gin-gonic/gin && \
go get github.com/Sirupsen/logrus
VOLUME ["/go/src/github.com/buildertools/entropy", "/go/pkg", "/go/bin"]
WORKDIR /go/src/github.com/buildertools/entropy
CMD ["gulp"]