1
0
forked from MTSR/mapserver

static build

This commit is contained in:
Thomas Rudin 2019-11-28 19:35:24 +01:00
parent 0d5f9180ee
commit 6bc8148c0e
2 changed files with 2 additions and 3 deletions

View File

@ -15,7 +15,7 @@ RUN cd /server &&\
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /server/mapserver /bin/mapserver
COPY --from=builder /server/output/mapserver-linux-x86_64 /bin/mapserver
EXPOSE 8080
CMD ["/bin/mapserver"]

View File

@ -17,8 +17,7 @@ BINARIES += $(OUT_DIR)/mapserver-linux-arm
JS_BUNDLE = static/js/bundle.js
all: $(STATIC_VFS)
$(GO_BUILD)
all: $(STATIC_VFS) $(OUT_DIR)/mapserver-linux-x86_64
$(OUT_DIR):
mkdir $@