Use versioned image from hexpm

This commit is contained in:
tusooa 2022-12-18 13:57:03 -05:00
parent 2a244b391d
commit 1cf20184ff
No known key found for this signature in database
GPG Key ID: 7B467EDE43A08224

View File

@ -1,4 +1,8 @@
FROM elixir:1.11.4-alpine as build ARG ELIXIR_VER=1.11.4
ARG ERLANG_VER=24.2.1
ARG ALPINE_VER=3.17.0
FROM hexpm/elixir:${ELIXIR_VER}-erlang-${ERLANG_VER}-alpine-${ALPINE_VER} as build
COPY . . COPY . .
@ -12,7 +16,7 @@ RUN apk add git gcc g++ musl-dev make cmake file-dev &&\
mkdir release &&\ mkdir release &&\
mix release --path release mix release --path release
FROM alpine FROM alpine:${ALPINE_VER}
ARG BUILD_DATE ARG BUILD_DATE
ARG VCS_REF ARG VCS_REF