From f9d53b601dd7e31f60d2289a1c7c731ea2e8eb6a Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Tue, 26 Nov 2019 11:55:50 +0100 Subject: [PATCH] dockerfile cleanup (rollup, tests, jshint) --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f156aa..b5a7b28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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