This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-24 13:52:49 +00:00
|
|
|
FROM golang:1.16.7 AS sia-builder
|
2020-07-08 12:09:54 +00:00
|
|
|
|
|
|
|
ENV GOOS linux
|
|
|
|
ENV GOARCH amd64
|
|
|
|
|
2021-04-07 09:55:43 +00:00
|
|
|
ARG branch=portal-latest
|
2020-07-08 12:09:54 +00:00
|
|
|
|
2022-03-31 10:05:08 +00:00
|
|
|
RUN git clone https://gitlab.com/SkynetLabs/skyd.git Sia --single-branch --branch ${branch} && \
|
|
|
|
make release --directory Sia
|
2020-07-08 12:09:54 +00:00
|
|
|
|
2022-03-31 10:05:08 +00:00
|
|
|
FROM nebulouslabs/sia:1.5.6
|
2020-07-08 12:09:54 +00:00
|
|
|
|
2021-05-17 20:05:28 +00:00
|
|
|
COPY --from=sia-builder /go/bin/ /usr/bin/
|
2021-04-20 12:07:43 +00:00
|
|
|
|
2022-03-31 10:23:16 +00:00
|
|
|
RUN if [ -f "/usr/bin/skyd" ]; then mv /usr/bin/skyd /usr/bin/siad; fi && \
|
|
|
|
if [ -f "/usr/bin/skyc" ]; then mv /usr/bin/skyc /usr/bin/siac; fi
|