FROM dynamic args are not supported

This commit is contained in:
Karol Wypchlo 2020-08-18 11:54:51 +02:00
parent 9681aa04f9
commit cbf7705598
2 changed files with 2 additions and 4 deletions

View File

@ -13,8 +13,7 @@ services:
context: ./docker/sia
dockerfile: Dockerfile
args:
builder: alpine-1.5.0
branch: master
branch: v1.5.0
container_name: sia
restart: unless-stopped
environment:

View File

@ -4,11 +4,10 @@ ENV GOOS linux
ENV GOARCH amd64
ARG branch=master
ARG builder=latest
RUN git clone https://gitlab.com/NebulousLabs/Sia.git --single-branch --branch ${branch}
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/