mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
14 lines
443 B
Docker
14 lines
443 B
Docker
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
|