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 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:

View File

@ -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/