mapserver/Dockerfile
renovate[bot] 1edb544958
Some checks failed
go-test / build (push) Has been cancelled
jshint / build (push) Has been cancelled
chore(deps): update node.js to v20.18.0
2024-10-04 22:31:04 +00:00

18 lines
452 B
Docker

FROM node:20.18.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"
EXPOSE 8080
ENTRYPOINT ["/bin/mapserver"]