diff --git a/ecs/Dockerfile b/ecs/Dockerfile index 002b3ef..d456144 100644 --- a/ecs/Dockerfile +++ b/ecs/Dockerfile @@ -14,10 +14,16 @@ LABEL maintainer="ProcessOne " \ RUN git clone https://github.com/processone/ejabberd.git WORKDIR /ejabberd COPY vars.config . -RUN echo '{vsn, "'${VERSION}'.0"}.' >>vars.config COPY config.exs config/ COPY rel/*exs rel/ RUN git checkout ${VERSION/latest/HEAD} \ + \ + && if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then \ + echo '{vsn, "'"$VERSION.0"'"}.' >> vars.config; \ + else \ + echo '{vsn, "0.0.0"}.' >> vars.config; \ + fi \ + \ && mix deps.get \ && (cd deps/eimp; ./configure)