factorio-server-manager/docker/Dockerfile-build
2020-11-20 11:27:21 -05:00

24 lines
506 B
Plaintext

FROM alpine:latest as build
RUN apk add --no-cache git make musl-dev go nodejs npm zip
ENV FACTORIO_BRANCH=develop
ENV GOROOT /usr/lib/go
ENV GOPATH /go
ENV PATH /go/bin:$PATH
ENV FACTORIO_ROOT /go/src/factorio-server-manager
COPY build-release.sh /usr/local/bin/build-release.sh
RUN mkdir -p ${GOPATH}/bin
RUN chmod u+x /usr/local/bin/build-release.sh
WORKDIR $FACTORIO_ROOT
VOLUME /build
RUN ["/usr/local/bin/build-release.sh"]
FROM scratch as output
COPY --from=build ${FACTORIO_ROOT}/build/* .