cb01aca13d
Add a docker image for uplink-cli and push it to docker hub. We used to have this before the change to uplinkng. I'm not sure if the pushing works, we'll see after merge. To test, build an image with `make uplink-image`, read the tag from the output and run normal uplink-cli commands using `docker run -it storjlabs/uplink:df9bbceca-uplink-docker-go1.18.8-amd64 [command]` Part of https://github.com/storj/uplink/issues/109 Change-Id: I8a10aab2b778951ff42a22ba2f252c581eb66b65
16 lines
502 B
Docker
16 lines
502 B
Docker
ARG DOCKER_ARCH
|
|
|
|
# Fetch ca-certificates file for arch independent builds below
|
|
FROM debian:buster-slim as ca-cert
|
|
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
|
|
RUN update-ca-certificates
|
|
|
|
FROM ${DOCKER_ARCH:-amd64}/debian:buster-slim
|
|
ARG TAG
|
|
ARG GOARCH
|
|
ENV GOARCH ${GOARCH}
|
|
WORKDIR /app
|
|
COPY --from=ca-cert /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY release/${TAG}/uplink_linux_${GOARCH:-amd64} /app/uplink
|
|
ENTRYPOINT ["/app/uplink"]
|