OKR/build-image/mysql_bak/Dockerfile

16 lines
641 B
Docker
Raw Normal View History

2024-05-17 21:33:53 +08:00
FROM ubuntu:22.04
LABEL MAINTAINER='beaconfire'
RUN apt update && apt install -y curl unzip && \
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
curl "https://seethingx-pkg.oss-cn-beijing.aliyuncs.com/mysqldump-8.0.35-glibc2.17-x86_64.tgz" -o "mysqldump.tgz" && \
tar xf mysqldump.tgz -C /usr/local && \
rm -rf aws awscliv2.zip mysqldump.tgz
2024-07-30 15:53:25 +08:00
ENV PATH=$PATH:/usr/local/mysqldump/bin DATABASES="" HOST="" PORT="" PASSWORD="" AWS_ACCESS_KEY="" AWS_SECRET_KEY=""
2024-05-17 21:33:53 +08:00
COPY entrypoint.sh /usr/local/bin
CMD [ "/usr/local/bin/entrypoint.sh" ]