This change adds the needed bits to enable Windows builds. This also adds a new make target to create the release files that will be uploaded as part of new releases. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
17 lines
503 B
Text
17 lines
503 B
Text
FROM docker.io/golang:alpine
|
|
|
|
WORKDIR /root
|
|
USER root
|
|
|
|
RUN apk add musl-dev gcc libtool m4 autoconf g++ make libblkid util-linux-dev git linux-headers mingw-w64-gcc
|
|
|
|
RUN wget http://musl.cc/aarch64-linux-musl-cross.tgz -O /tmp/aarch64-linux-musl-cross.tgz && \
|
|
tar --strip-components=1 -C /usr/local -xzf /tmp/aarch64-linux-musl-cross.tgz && \
|
|
rm /tmp/aarch64-linux-musl-cross.tgz
|
|
|
|
ADD ./scripts/build-static.sh /build-static.sh
|
|
RUN chmod +x /build-static.sh
|
|
|
|
ADD . /build/garm
|
|
|
|
CMD ["/bin/sh"]
|