Change how signal server patches are applied

This commit is contained in:
Finn 2018-12-04 21:29:19 -08:00
parent 2258c4d72b
commit 37f43a05f8
2 changed files with 7 additions and 1 deletions

View 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

View file

@ -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