mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 12:24:12 +00:00
git-for-windows-msys2: add Dockerfile for building azcopy
This commit is contained in:
parent
67c6bb42b8
commit
c9c32b4ee9
13
dockerfiles/git-for-windows-msys2/Dockerfile
Normal file
13
dockerfiles/git-for-windows-msys2/Dockerfile
Normal 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
|
Loading…
x
Reference in New Issue
Block a user