From d01bbcad989edf501b591bcbf0730dfaa4acfefd Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 7 Apr 2022 13:59:03 +0200 Subject: [PATCH] Use JSDeliver mirror when building Docker images as well Signed-off-by: Thomas Citharel --- docker/multiarch/Dockerfile | 2 ++ docker/production/Dockerfile | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docker/multiarch/Dockerfile b/docker/multiarch/Dockerfile index cb11aaa13..910b1d9a4 100644 --- a/docker/multiarch/Dockerfile +++ b/docker/multiarch/Dockerfile @@ -9,6 +9,8 @@ ENV ELIXIR_VERSION latest ENV ERLANG_VERSION latest ENV NODE_VERSION 16 +ENV HEX_MIRROR="https://cdn.jsdelivr.net/hex" + # Install system dependencies RUN apt-get update -yq && apt-get install -yq build-essential cmake postgresql-client git curl gnupg unzip exiftool webp imagemagick gifsicle RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index 33612106f..4476945bb 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -14,6 +14,8 @@ RUN yarn install --network-timeout 100000 \ # Then, build the application binary FROM elixir:1.13-alpine AS builder +ENV HEX_MIRROR="https://cdn.jsdelivr.net/hex" + RUN apk add --no-cache build-base git cmake COPY mix.exs mix.lock ./