FROM dynamic args are not supported
This commit is contained in:
parent
9681aa04f9
commit
cbf7705598
|
@ -13,8 +13,7 @@ services:
|
||||||
context: ./docker/sia
|
context: ./docker/sia
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
builder: alpine-1.5.0
|
branch: v1.5.0
|
||||||
branch: master
|
|
||||||
container_name: sia
|
container_name: sia
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -4,11 +4,10 @@ ENV GOOS linux
|
||||||
ENV GOARCH amd64
|
ENV GOARCH amd64
|
||||||
|
|
||||||
ARG branch=master
|
ARG branch=master
|
||||||
ARG builder=latest
|
|
||||||
|
|
||||||
RUN git clone https://gitlab.com/NebulousLabs/Sia.git --single-branch --branch ${branch}
|
RUN git clone https://gitlab.com/NebulousLabs/Sia.git --single-branch --branch ${branch}
|
||||||
RUN make release --directory Sia
|
RUN make release --directory Sia
|
||||||
|
|
||||||
FROM nebulouslabs/sia:${builder}
|
FROM nebulouslabs/sia:alpine-1.5.0
|
||||||
|
|
||||||
COPY --from=sia-builder /go/bin/siac /go/bin/siad /usr/bin/
|
COPY --from=sia-builder /go/bin/siac /go/bin/siad /usr/bin/
|
||||||
|
|
Reference in New Issue