2019-02-26 15:59:40 +03: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 16:45:20 +03:00
|
|
|
RUN cd /server && make build
|
2019-02-26 15:59:40 +03:00
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk --no-cache add ca-certificates
|
|
|
|
WORKDIR /app
|
2019-02-26 20:40:18 +03:00
|
|
|
COPY --from=builder /server/output/mapserver-linux-x86_64 /bin/mapserver
|
2019-02-26 15:59:40 +03:00
|
|
|
CMD ["/bin/mapserver"]
|
|
|
|
|