1
0
forked from MTSR/mapserver
mapserver/Dockerfile

18 lines
452 B
Docker
Raw Permalink Normal View History

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
ENV MT_CONFIG_PATH "mapserver.json"
ENV MT_LOGLEVEL "INFO"
ENV MT_READONLY "false"
2019-02-27 17:50:12 +03:00
EXPOSE 8080
ENTRYPOINT ["/bin/mapserver"]