git-for-windows-msys2: add Dockerfile for building azcopy

This commit is contained in:
ZenithalHourlyRate 2021-09-05 01:37:19 +08:00
parent 67c6bb42b8
commit c9c32b4ee9
No known key found for this signature in database
GPG Key ID: 1189C659F3D04C1C

View File

@ -0,0 +1,13 @@
FROM golang:1.17.0-bullseye AS builder
WORKDIR /usr/src/
RUN apt-get update && \
apt-get install -y git
RUN git clone https://github.com/Azure/azure-storage-azcopy
RUN cd azure-storage-azcopy && git checkout v10.12.1 && go build -o azcopy
FROM alpine:3.12
LABEL maintainer="hongren.zheng@tuna.tsinghua.edu.cn"
COPY --from=builder /usr/src/azure-storage-azcopy/azcopy /usr/local/bin/
RUN mkdir -p /home/tunasync-scripts
CMD /bin/bash