Change how signal server patches are applied
This commit is contained in:
parent
2258c4d72b
commit
37f43a05f8
2 changed files with 7 additions and 1 deletions
6
signal-server-patches/apply-patches.sh
Executable file
6
signal-server-patches/apply-patches.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
for patch in /tmp/signal-server-patches/*.patch; do
|
||||
echo "patch -p1 < \$patch"
|
||||
patch -p1 < $patch
|
||||
done
|
|
@ -3,7 +3,7 @@ RUN apt-get update && apt-get install -y openjdk-8-jdk-headless maven git
|
|||
RUN git -C /usr/local/src clone https://github.com/signalapp/Signal-Server
|
||||
WORKDIR /usr/local/src/Signal-Server
|
||||
COPY signal-server-patches /tmp/signal-server-patches
|
||||
RUN bash -exc "for patch in /tmp/signal-server-patches/*.patch; do patch -p1 $patch; done"
|
||||
RUN /tmp/signal-server-patches/apply-patches.sh
|
||||
RUN mvn install -DskipTests
|
||||
RUN ls -lha target
|
||||
|
||||
|
|
Loading…
Reference in a new issue