Skip to content

Commit 19ac0ca

Browse files
authored
Merge pull request #1 from pg-sharding/dockerfile-apt-mirror
Use apt repository mirror in Dockerfile
2 parents 14ccca3 + 0554ee0 commit 19ac0ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ WORKDIR /root
44

55
ENV DEBIAN_FRONTEND=noninteractive
66

7-
RUN apt update -qq && apt install -y \
7+
RUN apt update && apt install -y ca-certificates
8+
RUN sed -i 's/archive.ubuntu.com/mirror.yandex.ru/g' /etc/apt/sources.list
9+
10+
RUN apt update -qq -o Acquire::AllowInsecureRepositories=true && apt install -y --no-install-recommends --allow-unauthenticated \
811
openjdk-8-jdk maven postgresql-client && \
912
apt remove -y openjdk-11-jre-headless
1013

0 commit comments

Comments
 (0)