Skip to content

Commit

Permalink
improved dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard B committed Nov 10, 2019
1 parent 0e39ff9 commit 1e5ee5d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ RUN apt-get update \
&& apt-get install -y --no-install-recommends wget default-jre software-properties-common git \
&& rm -rf /var/lib/apt/lists/*

RUN wget -P /tmp/ https://github.com/AsamK/signal-cli/releases/download/v${SIGNAL_CLI_VERSION}/signal-cli-${SIGNAL_CLI_VERSION}.tar.gz \
&& tar -C /usr/bin -xzf /tmp/signal-cli-${SIGNAL_CLI_VERSION}.tar.gz \
&& rm -rf /tmp/signal-cli-${SIGNAL_CLI_VERSION}.tar.gz

RUN cd /tmp/ \
&& wget -P /tmp/ https://github.com/AsamK/signal-cli/archive/v${SIGNAL_CLI_VERSION}.tar.gz \
&& tar -xvf /tmp/v${SIGNAL_CLI_VERSION}.tar.gz \
&& cd signal-cli-${SIGNAL_CLI_VERSION} \
&& ./gradlew build \
&& ./gradlew installDist \
&& ln -s /tmp/signal-cli-${SIGNAL_CLI_VERSION}/build/install/signal-cli/bin/signal-cli /usr/bin/signal-cli \
&& rm -rf /tmp/v${SIGNAL_CLI_VERSION}.tar.gz

RUN mkdir -p /signal-cli-config/
RUN mkdir -p /home/.local/share/signal-cli
Expand Down

0 comments on commit 1e5ee5d

Please sign in to comment.