Skip to content

Commit 403f228

Browse files
committed
Copy captcha scripts to immutable path for easy calling
1 parent b75a086 commit 403f228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecs/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ RUN mkdir runtime \
4444
&& mkdir lib/ejabberd-$EJABBERD_VERSION/priv/bin \
4545
&& cp /usr/lib/elixir/bin/* bin/ \
4646
&& sed -i 's|ERL_EXEC="erl"|ERL_EXEC="/home/ejabberd/bin/erl"|' bin/elixir \
47-
&& cp /ejabberd/tools/captcha*sh lib/ejabberd-$EJABBERD_VERSION/priv/bin \
47+
&& cp /ejabberd/tools/captcha*sh bin/ \
4848
&& cp -r /ejabberd/sql lib/ejabberd-*/priv
4949

5050
# Runtime container
@@ -108,7 +108,7 @@ WORKDIR $HOME
108108
COPY --from=builder /ejabberd/runtime .
109109
COPY bin/* bin/
110110
COPY --from=api /go/bin/ejabberdapi bin/ejabberdapi
111-
RUN chmod 755 bin/ejabberdctl bin/ejabberdapi bin/erl
111+
RUN chmod 755 bin/ejabberdctl bin/ejabberdapi bin/erl bin/captcha*.sh
112112
COPY --chown=ejabberd:ejabberd conf conf/
113113
ADD --chown=ejabberd:ejabberd https://download.process-one.net/cacert.pem conf/cacert.pem
114114

0 commit comments

Comments
 (0)