mapserver/server/Dockerfile

19 lines
434 B
Docker
Raw Normal View History

2019-02-26 13:59:40 +01:00
FROM ubuntu as builder
RUN apt-get update &&\
apt-get install -y software-properties-common git &&\
add-apt-repository ppa:longsleep/golang-backports &&\
apt-get update &&\
apt-get install -y golang-go
COPY ./ /server
2019-02-26 14:45:20 +01:00
RUN cd /server && make build
2019-02-26 13:59:40 +01:00
2019-02-27 15:50:12 +01:00
FROM alpine:latest
2019-02-26 13:59:40 +01:00
RUN apk --no-cache add ca-certificates
WORKDIR /app
2019-02-26 18:40:18 +01:00
COPY --from=builder /server/output/mapserver-linux-x86_64 /bin/mapserver
2019-02-26 13:59:40 +01:00
2019-02-27 15:50:12 +01:00
EXPOSE 8080
CMD ["/bin/mapserver"]