Use JSDeliver mirror when building Docker images as well

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-04-07 13:59:03 +02:00
parent d11929d231
commit d01bbcad98
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 4 additions and 0 deletions

View File

@ -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/*

View File

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