dockerfile cleanup (rollup, tests, jshint)
This commit is contained in:
parent
878f44744e
commit
f9d53b601d
@ -4,14 +4,13 @@ RUN apt-get update &&\
|
||||
apt-get install -y software-properties-common git &&\
|
||||
add-apt-repository ppa:longsleep/golang-backports &&\
|
||||
apt-get update &&\
|
||||
apt-get install -y golang-go
|
||||
apt-get install -y golang-go npm nodejs git
|
||||
|
||||
VOLUME /root/go
|
||||
COPY ./ /server
|
||||
RUN cd /server &&\
|
||||
go generate &&\
|
||||
go test ./... &&\
|
||||
CGO_ENABLED=1 go build -ldflags "-linkmode external -extldflags -static -X mapserver/app.Version=docker"
|
||||
npm install -g jshint rollup &&\
|
||||
make test jshint all
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add ca-certificates
|
||||
|
Loading…
Reference in New Issue
Block a user