2018-12-01 23:23:22 +00:00
|
|
|
FROM debian:9 as build
|
|
|
|
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
|
2018-12-05 05:19:10 +00:00
|
|
|
COPY signal-server-patches /tmp/signal-server-patches
|
2018-12-05 05:29:19 +00:00
|
|
|
RUN /tmp/signal-server-patches/apply-patches.sh
|
2018-12-01 23:23:22 +00:00
|
|
|
RUN mvn install -DskipTests
|
|
|
|
|
|
|
|
FROM debian:9
|
|
|
|
RUN apt-get update && apt-get install -y openjdk-8-jre-headless
|
|
|
|
COPY --from=build /usr/local/src/Signal-Server/target/TextSecureServer-2.02.jar /usr/share/TextSecureServer.jar
|
|
|
|
RUN useradd signal
|
|
|
|
RUN chown -R signal /usr/share/TextSecureServer.jar
|
2018-12-03 17:34:46 +00:00
|
|
|
USER signal
|
2018-12-01 23:23:22 +00:00
|
|
|
ENTRYPOINT ["java", "-jar", "/usr/share/TextSecureServer.jar"]
|