2024-06-28 18:29:29 +03:00
|
|
|
FROM node:20.15.0 as bundle-builder
|
|
|
|
COPY public /public
|
|
|
|
WORKDIR /public
|
|
|
|
RUN npm ci && npm run bundle
|
|
|
|
|
|
|
|
FROM golang:1.22.4 as go-builder
|
|
|
|
COPY . /data
|
|
|
|
COPY --from=bundle-builder /public/js/bundle* /data/public/js/
|
|
|
|
WORKDIR /data
|
|
|
|
RUN CGO_ENABLED=0 go build .
|
|
|
|
|
|
|
|
FROM alpine:3.20.1
|
|
|
|
COPY --from=go-builder /data/mapserver /bin/mapserver
|
2023-09-21 08:19:18 +03:00
|
|
|
ENV MT_CONFIG_PATH "mapserver.json"
|
2023-09-18 07:47:45 +03:00
|
|
|
ENV MT_LOGLEVEL "INFO"
|
|
|
|
ENV MT_READONLY "false"
|
2019-02-27 17:50:12 +03:00
|
|
|
EXPOSE 8080
|
2023-09-18 07:47:45 +03:00
|
|
|
ENTRYPOINT ["/bin/mapserver"]
|