fix image version issue for builder
This commit is contained in:
parent
0a5f51d988
commit
9681aa04f9
|
@ -13,6 +13,7 @@ services:
|
||||||
context: ./docker/sia
|
context: ./docker/sia
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
|
builder: alpine-1.5.0
|
||||||
branch: master
|
branch: master
|
||||||
container_name: sia
|
container_name: sia
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -28,7 +29,7 @@ services:
|
||||||
- 9980
|
- 9980
|
||||||
|
|
||||||
sia-upload:
|
sia-upload:
|
||||||
image: nebulouslabs/sia:alpine-latest
|
image: nebulouslabs/sia:alpine-1.5.0
|
||||||
container_name: sia-upload
|
container_name: sia-upload
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -4,11 +4,11 @@ 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:alpine-latest
|
FROM nebulouslabs/sia:${builder}
|
||||||
|
|
||||||
COPY --from=sia-builder /go/bin/siac /sia/siac
|
COPY --from=sia-builder /go/bin/siac /go/bin/siad /usr/bin/
|
||||||
COPY --from=sia-builder /go/bin/siad /sia/siad
|
|
||||||
|
|
Reference in New Issue