mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2024-12-29 02:57:24 +02:00
24 lines
506 B
Plaintext
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/* .
|