Skip to content

Commit 0554ee0

Browse files
committed
Use apt repository mirror
1 parent 14ccca3 commit 0554ee0

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)