We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc13b8a + 7e93f07 commit 0a9aca6Copy full SHA for 0a9aca6
ecs/Dockerfile
@@ -14,10 +14,16 @@ LABEL maintainer="ProcessOne <[email protected]>" \
14
RUN git clone https://github.com/processone/ejabberd.git
15
WORKDIR /ejabberd
16
COPY vars.config .
17
-RUN echo '{vsn, "'${VERSION}'.0"}.' >>vars.config
18
COPY config.exs config/
19
COPY rel/*exs rel/
20
RUN git checkout ${VERSION/latest/HEAD} \
+ \
21
+ && if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then \
22
+ echo '{vsn, "'"$VERSION.0"'"}.' >> vars.config; \
23
+ else \
24
+ echo '{vsn, "0.0.0"}.' >> vars.config; \
25
+ fi \
26
27
&& mix deps.get \
28
&& (cd deps/eimp; ./configure)
29
0 commit comments