Simplify how patches are applied

This commit is contained in:
Finn 2020-10-05 18:08:29 -07:00
parent 340b1722c6
commit 4a3302f35f
2 changed files with 1 additions and 7 deletions

View file

@ -1,6 +0,0 @@
#!/bin/bash
set -euo pipefail
for patch in /tmp/signal-server-patches/*.patch; do
echo "patch -p1 < ${patch}"
patch -p1 < "${patch}"
done

View file

@ -11,7 +11,7 @@ RUN apt-get install -y openjdk-11-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 /tmp/signal-server-patches/apply-patches.sh
RUN cat /tmp/signal-server-patches/*.patch | patch -p1
RUN mvn install -DskipTests
FROM debian:buster