mapserver/Dockerfile
dependabot-preview[bot] 781d655d1e Bump golang from 1.14.5-alpine to 1.14.6-alpine
Bumps golang from 1.14.5-alpine to 1.14.6-alpine.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-21 19:41:28 +02:00

21 lines
503 B
Docker

FROM golang:1.14.6-alpine as builder
RUN apk --no-cache add ca-certificates gcc libc-dev nodejs npm git make
VOLUME /root/go
COPY ./ /server
RUN cd /server &&\
npm install -g jshint rollup &&\
make test jshint all
FROM alpine:3.12.0
RUN apk --no-cache add ca-certificates curl
WORKDIR /app
COPY --from=builder /server/output/mapserver-linux-x86_64 /bin/mapserver
HEALTHCHECK --interval=5s --timeout=3s \
CMD curl -f http://localhost:8080/api/config || exit 1
EXPOSE 8080
CMD ["/bin/mapserver"]