OKR/build-image/mongo/Dockerfile

16 lines
644 B
Docker
Raw Permalink Normal View History

2024-07-26 18:50:39 +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 && \
2024-07-26 18:53:13 +08:00
curl "https://seethingx-pkg.oss-cn-beijing.aliyuncs.com/mongodump-ubuntu2204-x86_64-100.10.0.tgz" -o "mongodump.tgz" && \
2024-07-26 18:50:39 +08:00
tar xf mongodump.tgz -C /usr/local && \
rm -rf aws awscliv2.zip mongodump.tgz
2024-07-29 19:08:15 +08:00
ENV PATH=$PATH:/usr/local/mongodump/bin DATABASES="" HOST="" PORT="" PASSWORD="" AWS_ACCESS_KEY="" AWS_SECRET_KEY=""
2024-07-26 18:50:39 +08:00
COPY entrypoint.sh /usr/local/bin
CMD [ "/usr/local/bin/entrypoint.sh" ]