Use JSDeliver mirror when building Docker images as well
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
d11929d231
commit
d01bbcad98
@ -9,6 +9,8 @@ ENV ELIXIR_VERSION latest
|
|||||||
ENV ERLANG_VERSION latest
|
ENV ERLANG_VERSION latest
|
||||||
ENV NODE_VERSION 16
|
ENV NODE_VERSION 16
|
||||||
|
|
||||||
|
ENV HEX_MIRROR="https://cdn.jsdelivr.net/hex"
|
||||||
|
|
||||||
# Install system dependencies
|
# 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 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/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
|
@ -14,6 +14,8 @@ RUN yarn install --network-timeout 100000 \
|
|||||||
# Then, build the application binary
|
# Then, build the application binary
|
||||||
FROM elixir:1.13-alpine AS builder
|
FROM elixir:1.13-alpine AS builder
|
||||||
|
|
||||||
|
ENV HEX_MIRROR="https://cdn.jsdelivr.net/hex"
|
||||||
|
|
||||||
RUN apk add --no-cache build-base git cmake
|
RUN apk add --no-cache build-base git cmake
|
||||||
|
|
||||||
COPY mix.exs mix.lock ./
|
COPY mix.exs mix.lock ./
|
||||||
|
Loading…
Reference in New Issue
Block a user