From 1691177e9042ea8f1b0ee07279f213f9185a761a Mon Sep 17 00:00:00 2001 From: Paul Swartz Date: Wed, 13 Sep 2023 14:59:53 -0400 Subject: [PATCH] fix: update Dockerfile to the same Elixir/Erlang version as `.tool-versions` Looks like it was missed as a part of #280. --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a3067afa..04436b10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,7 @@ -FROM hexpm/elixir:1.11.4-erlang-24.3.4.7-alpine-3.16.3 AS builder +ARG ELIXIR_VERSION=1.14.5 +ARG ERLANG_VERSION=25.3.2.1 +ARG ALPINE_VERSION=3.18.0 +FROM hexpm/elixir:$ELIXIR_VERSION-erlang-$ERLANG_VERSION-alpine-$ALPINE_VERSION AS builder WORKDIR /root @@ -22,9 +25,10 @@ ADD src /root/src RUN mix do compile, release # Second stage: copies the files from the builder stage -FROM alpine:3.16.3 +FROM alpine:$ALPINE_VERSION RUN apk add --update libssl1.1 ncurses-libs bash dumb-init libstdc++ \ + && apk upgrade \ && rm -rf /var/cache/apk # Set environment