1
0
forked from MTSR/mapserver
mapserver/Dockerfile
dependabot[bot] f39efc23a0 Bump golang from 1.16.3-alpine to 1.16.5-alpine
Bumps golang from 1.16.3-alpine to 1.16.5-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-21 08:20:10 +02:00

21 lines
503 B
Docker

FROM golang:1.16.5-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.13.4
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"]