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 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/mapserver /bin/mapserver COPY --from=builder /server/output/mapserver-linux-x86_64 /bin/mapserver
EXPOSE 8080 EXPOSE 8080
CMD ["/bin/mapserver"] CMD ["/bin/mapserver"]

View File

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