Skip to content

Commit

Permalink
Move to ubuntu and add aws cli
Browse files Browse the repository at this point in the history
  • Loading branch information
martin31821 committed Nov 4, 2022
1 parent b7866d6 commit ca64db4
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
FROM restic/restic:0.14.0

RUN apk add --no-cache ca-certificates
RUN apk add --no-cache postgresql-client mysql-client bash tar influxdb curl jq
ARG UBUNTU_VERSION="22.04"
ARG RESTIC_VERSION="0.14.0"

FROM restic/restic:${RESTIC_VERSION} as restic

FROM ubuntu:${UBUNTU_VERSION}

ARG MINIO_VERSION="mc.RELEASE.2022-10-29T10-09-23Z"
ARG AWS_CLI_VER="2.8.8"

# Setting DEBIAN_FRONTEND=noninteractive causes tzdata to assume UTC, which is exactly what we want
RUN export DEBIAN_FRONTEND=noninteractive && apt update && apt install -y --no-install-recommends ca-certificates postgresql-client-14 mariadb-client bash tar influxdb curl jq openssh-client unzip tzdata && rm -rf /var/lib/apt/lists/*

# Download minio
RUN curl https://dl.min.io/client/mc/release/linux-amd64/$MINIO_VERSION > /usr/bin/mc && chmod +x /usr/bin/mc

# Copy restic into container
COPY --from=restic /usr/bin/restic /usr/bin/restic

# Download & Install AWS SDK
WORKDIR /tmp
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_CLI_VER}.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install && rm -rf aws awscliv2.zip

ENTRYPOINT ["/bin/bash"]

0 comments on commit ca64db4

Please sign in to comment.