forked from MTSR/mapserver
x86_64 docker image
This commit is contained in:
parent
fc25777567
commit
e38e965b36
@ -1,18 +1,17 @@
|
|||||||
FROM ubuntu as builder
|
FROM ubuntu as builder
|
||||||
|
|
||||||
RUN apt-get update &&\
|
RUN apt-get update &&\
|
||||||
apt-get install -y gcc-mingw-w64 gcc-5-arm-linux-gnueabihf gcc-i686-linux-gnu &&\
|
|
||||||
apt-get install -y software-properties-common git &&\
|
apt-get install -y software-properties-common git &&\
|
||||||
add-apt-repository ppa:longsleep/golang-backports &&\
|
add-apt-repository ppa:longsleep/golang-backports &&\
|
||||||
apt-get update &&\
|
apt-get update &&\
|
||||||
apt-get install -y golang-go
|
apt-get install -y golang-go
|
||||||
|
|
||||||
COPY ./ /server
|
COPY ./ /server
|
||||||
RUN cd /server && make build-all
|
RUN cd /server && make build
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
RUN apk --no-cache add ca-certificates
|
RUN apk --no-cache add ca-certificates
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /server/output/mapserver-linux-x86_64 /bin/mapserver
|
COPY --from=builder /server/mapserver /bin/mapserver
|
||||||
CMD ["/bin/mapserver"]
|
CMD ["/bin/mapserver"]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user