forked from MTSR/mapserver
docker stub
This commit is contained in:
parent
77de131c92
commit
fc25777567
9
server/.dockerignore
Normal file
9
server/.dockerignore
Normal file
@ -0,0 +1,9 @@
|
||||
mapserver
|
||||
world.mt
|
||||
output
|
||||
map.sqlite
|
||||
mapserver.tiles
|
||||
mapserver.sqlite
|
||||
mapserver.sqlite-journal
|
||||
mapserver.json
|
||||
debug.txt
|
18
server/Dockerfile
Normal file
18
server/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM ubuntu as builder
|
||||
|
||||
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 &&\
|
||||
add-apt-repository ppa:longsleep/golang-backports &&\
|
||||
apt-get update &&\
|
||||
apt-get install -y golang-go
|
||||
|
||||
COPY ./ /server
|
||||
RUN cd /server && make build-all
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add ca-certificates
|
||||
WORKDIR /app
|
||||
COPY --from=builder /server/output/mapserver-linux-x86_64 /bin/mapserver
|
||||
CMD ["/bin/mapserver"]
|
||||
|
Loading…
Reference in New Issue
Block a user