From b7fd32213255918918772876b74523ec3ff35ecf Mon Sep 17 00:00:00 2001 From: Tomasz Pietruszkiewicz Date: Fri, 19 Mar 2021 12:56:03 +0100 Subject: Remove usage of go and curl in cli project, due to know issue in curl version <7.68.0 https://github.com/curl/curl/issues/4409 latest available curl in debian is 7.64.0 Change-Id: I3b9125266a87f47d46f6ee7611b36aa5be5192fe Issue-ID: INT-1891 Signed-off-by: Tomasz Pietruszkiewicz --- deployment/docker/src/main/docker/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'deployment') diff --git a/deployment/docker/src/main/docker/Dockerfile b/deployment/docker/src/main/docker/Dockerfile index 05684eee..cd3fa5eb 100644 --- a/deployment/docker/src/main/docker/Dockerfile +++ b/deployment/docker/src/main/docker/Dockerfile @@ -32,11 +32,10 @@ ENV OPEN_CLI_HOME=/opt/oclip \ ADD ./STAGE $OPEN_CLI_HOME WORKDIR $OPEN_CLI_HOME -RUN sudo apt-get install -y lighttpd git curl pandoc vim && \ - cd /tmp && curl -O https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz && \ - tar -xvf go1.9.linux-amd64.tar.gz && mkdir -p /tmp/gotty && \ - GOPATH=/tmp/gotty /tmp/go/bin/go get github.com/yudai/gotty && \ - mv /tmp/gotty/bin/gotty /usr/local/bin/ && \ +RUN sudo apt-get install -y lighttpd git wget pandoc vim && \ + cd /tmp && wget https://github.com/yudai/gotty/releases/download/v1.0.0/gotty_linux_amd64.tar.gz && \ + tar -xvf gotty_linux_amd64.tar.gz && chmod +x ./gotty && \ + mv ./gotty /usr/local/bin/ && \ sudo chown -R ocomp:ocomp $OPEN_CLI_HOME && pandoc -t plain $OPEN_CLI_HOME/docs/README.md > $OPEN_CLI_HOME/docs/oclip-readme.txt && \ sudo apt-get purge -y pandoc && sudo apt-get autoremove -y && sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/* /tmp/go /tmp/gotty /tmp/* /var/tmp/* && \ chmod +x $OPEN_CLI_HOME/bin/oclip.sh && \ -- cgit 1.2.3-korg