2022-01-07 00:41:30 +00:00
|
|
|
FROM golang:1.17.6-alpine as builder
|
2019-02-26 13:59:40 +01:00
|
|
|
|
2019-11-28 19:46:11 +01:00
|
|
|
RUN apk --no-cache add ca-certificates gcc libc-dev nodejs npm git make
|
2019-02-26 13:59:40 +01:00
|
|
|
|
2019-03-22 12:36:53 +01:00
|
|
|
VOLUME /root/go
|
2019-02-26 13:59:40 +01:00
|
|
|
COPY ./ /server
|
2019-03-29 11:06:49 +01:00
|
|
|
RUN cd /server &&\
|
2019-11-26 11:55:50 +01:00
|
|
|
npm install -g jshint rollup &&\
|
|
|
|
make test jshint all
|
2019-02-26 13:59:40 +01:00
|
|
|
|
2021-12-25 02:33:35 +00:00
|
|
|
FROM alpine:3.15.0
|
2020-04-14 13:43:32 +02:00
|
|
|
RUN apk --no-cache add ca-certificates curl
|
2019-02-26 13:59:40 +01:00
|
|
|
WORKDIR /app
|
2019-11-28 19:35:24 +01:00
|
|
|
COPY --from=builder /server/output/mapserver-linux-x86_64 /bin/mapserver
|
2019-02-26 13:59:40 +01:00
|
|
|
|
2020-04-14 14:06:41 +02:00
|
|
|
HEALTHCHECK --interval=5s --timeout=3s \
|
|
|
|
CMD curl -f http://localhost:8080/api/config || exit 1
|
2020-04-14 13:43:32 +02:00
|
|
|
|
2019-02-27 15:50:12 +01:00
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["/bin/mapserver"]
|