dockerfile cleanup (rollup, tests, jshint)

This commit is contained in:
Thomas Rudin 2019-11-26 11:55:50 +01:00
parent 878f44744e
commit f9d53b601d

View File

@ -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