mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-02-11 22:19:27 -06:00
29 lines
870 B
Docker
29 lines
870 B
Docker
FROM ubuntu:22.04
|
|
|
|
ARG VERSION_ARG=unknown
|
|
ENV VERSION=${VERSION_ARG}-arm64
|
|
|
|
# Prevent interactive prompts during package installation
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
wget \
|
|
awscli \
|
|
ca-certificates \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install MongoDB Database Tools
|
|
ENV MONGO_TOOLS_VERSION=100.10.0
|
|
RUN wget -q https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-arm64-${MONGO_TOOLS_VERSION}.tgz \
|
|
&& tar -zxvf mongodb-database-tools-ubuntu2204-arm64-${MONGO_TOOLS_VERSION}.tgz \
|
|
&& mv mongodb-database-tools-ubuntu2204-arm64-${MONGO_TOOLS_VERSION}/bin/* /usr/local/bin/ \
|
|
&& rm -rf mongodb-database-tools-ubuntu2204-arm64-${MONGO_TOOLS_VERSION}*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY backup.sh .
|
|
RUN chmod +x backup.sh
|
|
|
|
CMD ["./backup.sh"]
|