Skip to content

Commit 390ac41

Browse files
committed
update Dockerfile
Signed-off-by: Slach <[email protected]>
1 parent c75dc15 commit 390ac41

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,15 @@ LABEL "org.opencontainers.image.description"="A tool for easy ClickHouse backup
130130
LABEL "org.opencontainers.image.source"="https://github.com/Altinity/clickhouse-backup"
131131
LABEL "org.opencontainers.image.documentation"="https://github.com/Altinity/clickhouse-backup/blob/master/Manual.md"
132132

133-
RUN apt-get update && apt-get install --no-install-recommends -y xxd bsdmainutils parallel curl wget && apt-get install -y gpg && curl -sL https://kopia.io/signing-key | gpg --dearmor --verbose -o /usr/share/keyrings/kopia-keyring.gpg && \
134-
echo "deb [signed-by=/usr/share/keyrings/kopia-keyring.gpg] https://packages.kopia.io/apt/ stable main" > /etc/apt/sources.list.d/kopia.list && \
133+
RUN bash -xec "apt-get update && apt-get install --no-install-recommends -y xxd bsdmainutils parallel curl wget && apt-get install -y gpg && curl -sL https://kopia.io/signing-key | gpg --dearmor --verbose -o /usr/share/keyrings/kopia-keyring.gpg && \
134+
echo 'deb [signed-by=/usr/share/keyrings/kopia-keyring.gpg] https://packages.kopia.io/apt/ stable main' > /etc/apt/sources.list.d/kopia.list && \
135135
curl -sL 'https://packages.clickhouse.com/rpm/lts/repodata/repomd.xml.key' | gpg --dearmor --verbose -o /usr/share/keyrings/clickhouse-keyring.gpg && \
136-
echo "deb [signed-by=/usr/share/keyrings/clickhouse-keyring.gpg arch=$(dpkg --print-architecture)] https://packages.clickhouse.com/deb stable main" > /etc/apt/sources.list.d/clickhouse.list && \
136+
echo 'deb [signed-by=/usr/share/keyrings/clickhouse-keyring.gpg arch=$(dpkg --print-architecture)] https://packages.clickhouse.com/deb stable main' > /etc/apt/sources.list.d/clickhouse.list && \
137137
apt-get update -y && \
138138
apt-get install --no-install-recommends -y ca-certificates tzdata bash curl restic rsync rclone jq gpg kopia libcap2-bin clickhouse-client && \
139139
update-ca-certificates && \
140-
curl -sL "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_$(dpkg --print-architecture)" -o /usr/bin/yq && chmod +x /usr/bin/yq && \
141-
rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apt/*
140+
curl -sL 'https://github.com/mikefarah/yq/releases/latest/download/yq_linux_$(dpkg --print-architecture)' -o /usr/bin/yq && chmod +x /usr/bin/yq && \
141+
rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apt/*"
142142

143143
COPY entrypoint.sh /entrypoint.sh
144144
RUN chmod +x /entrypoint.sh

0 commit comments

Comments
 (0)