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 ./