Open mbwmbw1337 opened 3 years ago
Dockerfile is failing build on Ubuntu 20
root@test:~/kadena-balance# docker build -t kadena . Sending build context to Docker daemon 276.5kB Step 1/3 : FROM nginx:1.17.5 ---> 540a289bab6c Step 2/3 : ENV GIT_URL https://github.com/kadena-community/kadena-balance ---> Using cache ---> 12016e0d5132 Step 3/3 : RUN apt-get -y update && apt-get -y install git && git clone ${GIT_URL} && cp /kadena-balance/* /usr/share/nginx/html ---> Running in ae3668bd798a Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB] Get:2 http://deb.debian.org/debian buster InRelease [122 kB] Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [268 kB] Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB] Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [9504 B] Fetched 8423 kB in 3s (2613 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: ca-certificates git-man krb5-locales less libcurl3-gnutls libedit2 liberror-perl libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libnghttp2-14 libpcre2-8-0 libperl5.28 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libssh2-1 libxext6 libxmuu1 netbase openssh-client openssl patch perl perl-base perl-modules-5.28 publicsuffix xauth Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n krb5-doc krb5-user libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql keychain libpam-ssh monkeysphere ssh-askpass ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl The following NEW packages will be installed: ca-certificates git git-man krb5-locales less libcurl3-gnutls libedit2 liberror-perl libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libnghttp2-14 libpcre2-8-0 libperl5.28 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libssh2-1 libxext6 libxmuu1 netbase openssh-client openssl patch perl perl-modules-5.28 publicsuffix xauth The following packages will be upgraded: perl-base 1 upgraded, 36 newly installed, 0 to remove and 27 not upgraded. Need to get 20.6 MB of archives. After this operation, 97.7 MB of additional disk space will be used. Get:1 http://security.debian.org/debian-security buster/updates/main amd64 libldap-common all 2.4.47+dfsg-3+deb10u6 [90.0 kB] Get:2 http://deb.debian.org/debian buster/main amd64 perl-base amd64 5.28.1-6+deb10u1 [1514 kB] Get:3 http://security.debian.org/debian-security buster/updates/main amd64 libldap-2.4-2 amd64 2.4.47+dfsg-3+deb10u6 [224 kB] Get:4 http://security.debian.org/debian-security buster/updates/main amd64 openssl amd64 1.1.1d-0+deb10u5 [844 kB] Get:5 http://deb.debian.org/debian buster/main amd64 perl-modules-5.28 all 5.28.1-6+deb10u1 [2873 kB] Get:6 http://deb.debian.org/debian buster/main amd64 libgdbm6 amd64 1.18.1-4 [64.7 kB] Get:7 http://deb.debian.org/debian buster/main amd64 libgdbm-compat4 amd64 1.18.1-4 [44.1 kB] Get:8 http://deb.debian.org/debian buster/main amd64 libperl5.28 amd64 5.28.1-6+deb10u1 [3894 kB] Get:9 http://deb.debian.org/debian buster/main amd64 perl amd64 5.28.1-6+deb10u1 [204 kB] Get:10 http://deb.debian.org/debian buster/main amd64 less amd64 487-0.1+b1 [129 kB] Get:11 http://deb.debian.org/debian buster/main amd64 netbase all 5.6 [19.4 kB] Get:12 http://deb.debian.org/debian buster/main amd64 krb5-locales all 1.17-3+deb10u1 [95.4 kB] Get:13 http://deb.debian.org/debian buster/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-1+deb10u1 [69.1 kB] Get:14 http://deb.debian.org/debian buster/main amd64 libsasl2-2 amd64 2.1.27+dfsg-1+deb10u1 [106 kB] Get:15 http://deb.debian.org/debian buster/main amd64 libedit2 amd64 3.1-20181209-1 [94.0 kB] Get:16 http://deb.debian.org/debian buster/main amd64 libkeyutils1 amd64 1.6-6 [15.0 kB] Get:17 http://deb.debian.org/debian buster/main amd64 libkrb5support0 amd64 1.17-3+deb10u1 [65.8 kB] Get:18 http://deb.debian.org/debian buster/main amd64 libk5crypto3 amd64 1.17-3+deb10u1 [122 kB] Get:19 http://deb.debian.org/debian buster/main amd64 libkrb5-3 amd64 1.17-3+deb10u1 [369 kB] Get:20 http://deb.debian.org/debian buster/main amd64 libgssapi-krb5-2 amd64 1.17-3+deb10u1 [158 kB] Get:21 http://deb.debian.org/debian buster/main amd64 openssh-client amd64 1:7.9p1-10+deb10u2 [782 kB] Get:22 http://deb.debian.org/debian buster/main amd64 ca-certificates all 20200601~deb10u2 [166 kB] Get:23 http://deb.debian.org/debian buster/main amd64 libnghttp2-14 amd64 1.36.0-2+deb10u1 [85.0 kB] Get:24 http://deb.debian.org/debian buster/main amd64 libpsl5 amd64 0.20.2-2 [53.7 kB] Get:25 http://deb.debian.org/debian buster/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2 [60.5 kB] Get:26 http://deb.debian.org/debian buster/main amd64 libssh2-1 amd64 1.8.0-2.1 [140 kB] Get:27 http://deb.debian.org/debian buster/main amd64 libcurl3-gnutls amd64 7.64.0-4+deb10u1 [330 kB] Get:28 http://deb.debian.org/debian buster/main amd64 libpcre2-8-0 amd64 10.32-5 [213 kB] Get:29 http://deb.debian.org/debian buster/main amd64 liberror-perl all 0.17027-2 [30.9 kB] Get:30 http://deb.debian.org/debian buster/main amd64 git-man all 1:2.20.1-2+deb10u3 [1620 kB] Get:31 http://deb.debian.org/debian buster/main amd64 git amd64 1:2.20.1-2+deb10u3 [5633 kB] Get:32 http://deb.debian.org/debian buster/main amd64 libsasl2-modules amd64 2.1.27+dfsg-1+deb10u1 [104 kB] Get:33 http://deb.debian.org/debian buster/main amd64 libxext6 amd64 2:1.3.3-1+b2 [52.5 kB] Get:34 http://deb.debian.org/debian buster/main amd64 libxmuu1 amd64 2:1.1.2-2+b3 [23.9 kB] Get:35 http://deb.debian.org/debian buster/main amd64 patch amd64 2.7.6-3+deb10u1 [126 kB] Get:36 http://deb.debian.org/debian buster/main amd64 publicsuffix all 20190415.1030-1 [116 kB] Get:37 http://deb.debian.org/debian buster/main amd64 xauth amd64 1:1.0.10-1 [40.3 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 20.6 MB in 1s (40.3 MB/s) (Reading database ... 7203 files and directories currently installed.) Preparing to unpack .../perl-base_5.28.1-6+deb10u1_amd64.deb ... Unpacking perl-base (5.28.1-6+deb10u1) over (5.28.1-6) ... Setting up perl-base (5.28.1-6+deb10u1) ... Selecting previously unselected package perl-modules-5.28. (Reading database ... 7203 files and directories currently installed.) Preparing to unpack .../00-perl-modules-5.28_5.28.1-6+deb10u1_all.deb ... Unpacking perl-modules-5.28 (5.28.1-6+deb10u1) ... Selecting previously unselected package libgdbm6:amd64. Preparing to unpack .../01-libgdbm6_1.18.1-4_amd64.deb ... Unpacking libgdbm6:amd64 (1.18.1-4) ... Selecting previously unselected package libgdbm-compat4:amd64. Preparing to unpack .../02-libgdbm-compat4_1.18.1-4_amd64.deb ... Unpacking libgdbm-compat4:amd64 (1.18.1-4) ... Selecting previously unselected package libperl5.28:amd64. Preparing to unpack .../03-libperl5.28_5.28.1-6+deb10u1_amd64.deb ... Unpacking libperl5.28:amd64 (5.28.1-6+deb10u1) ... Selecting previously unselected package perl. Preparing to unpack .../04-perl_5.28.1-6+deb10u1_amd64.deb ... Unpacking perl (5.28.1-6+deb10u1) ... Selecting previously unselected package less. Preparing to unpack .../05-less_487-0.1+b1_amd64.deb ... Unpacking less (487-0.1+b1) ... Selecting previously unselected package netbase. Preparing to unpack .../06-netbase_5.6_all.deb ... Unpacking netbase (5.6) ... Selecting previously unselected package krb5-locales. Preparing to unpack .../07-krb5-locales_1.17-3+deb10u1_all.deb ... Unpacking krb5-locales (1.17-3+deb10u1) ... Selecting previously unselected package libsasl2-modules-db:amd64. Preparing to unpack .../08-libsasl2-modules-db_2.1.27+dfsg-1+deb10u1_amd64.deb ... Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-1+deb10u1) ... Selecting previously unselected package libsasl2-2:amd64. Preparing to unpack .../09-libsasl2-2_2.1.27+dfsg-1+deb10u1_amd64.deb ... Unpacking libsasl2-2:amd64 (2.1.27+dfsg-1+deb10u1) ... Selecting previously unselected package libldap-common. Preparing to unpack .../10-libldap-common_2.4.47+dfsg-3+deb10u6_all.deb ... Unpacking libldap-common (2.4.47+dfsg-3+deb10u6) ... Selecting previously unselected package libldap-2.4-2:amd64. Preparing to unpack .../11-libldap-2.4-2_2.4.47+dfsg-3+deb10u6_amd64.deb ... Unpacking libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u6) ... Selecting previously unselected package libedit2:amd64. Preparing to unpack .../12-libedit2_3.1-20181209-1_amd64.deb ... Unpacking libedit2:amd64 (3.1-20181209-1) ... Selecting previously unselected package libkeyutils1:amd64. Preparing to unpack .../13-libkeyutils1_1.6-6_amd64.deb ... Unpacking libkeyutils1:amd64 (1.6-6) ... Selecting previously unselected package libkrb5support0:amd64. Preparing to unpack .../14-libkrb5support0_1.17-3+deb10u1_amd64.deb ... Unpacking libkrb5support0:amd64 (1.17-3+deb10u1) ... Selecting previously unselected package libk5crypto3:amd64. Preparing to unpack .../15-libk5crypto3_1.17-3+deb10u1_amd64.deb ... Unpacking libk5crypto3:amd64 (1.17-3+deb10u1) ... Selecting previously unselected package libkrb5-3:amd64. Preparing to unpack .../16-libkrb5-3_1.17-3+deb10u1_amd64.deb ... Unpacking libkrb5-3:amd64 (1.17-3+deb10u1) ... Selecting previously unselected package libgssapi-krb5-2:amd64. Preparing to unpack .../17-libgssapi-krb5-2_1.17-3+deb10u1_amd64.deb ... Unpacking libgssapi-krb5-2:amd64 (1.17-3+deb10u1) ... Selecting previously unselected package openssh-client. Preparing to unpack .../18-openssh-client_1%3a7.9p1-10+deb10u2_amd64.deb ... Unpacking openssh-client (1:7.9p1-10+deb10u2) ... Selecting previously unselected package openssl. Preparing to unpack .../19-openssl_1.1.1d-0+deb10u5_amd64.deb ... Unpacking openssl (1.1.1d-0+deb10u5) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../20-ca-certificates_20200601~deb10u2_all.deb ... Unpacking ca-certificates (20200601~deb10u2) ... Selecting previously unselected package libnghttp2-14:amd64. Preparing to unpack .../21-libnghttp2-14_1.36.0-2+deb10u1_amd64.deb ... Unpacking libnghttp2-14:amd64 (1.36.0-2+deb10u1) ... Selecting previously unselected package libpsl5:amd64. Preparing to unpack .../22-libpsl5_0.20.2-2_amd64.deb ... Unpacking libpsl5:amd64 (0.20.2-2) ... Selecting previously unselected package librtmp1:amd64. Preparing to unpack .../23-librtmp1_2.4+20151223.gitfa8646d.1-2_amd64.deb ... Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ... Selecting previously unselected package libssh2-1:amd64. Preparing to unpack .../24-libssh2-1_1.8.0-2.1_amd64.deb ... Unpacking libssh2-1:amd64 (1.8.0-2.1) ... Selecting previously unselected package libcurl3-gnutls:amd64. Preparing to unpack .../25-libcurl3-gnutls_7.64.0-4+deb10u1_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.64.0-4+deb10u1) ... Selecting previously unselected package libpcre2-8-0:amd64. Preparing to unpack .../26-libpcre2-8-0_10.32-5_amd64.deb ... Unpacking libpcre2-8-0:amd64 (10.32-5) ... Selecting previously unselected package liberror-perl. Preparing to unpack .../27-liberror-perl_0.17027-2_all.deb ... Unpacking liberror-perl (0.17027-2) ... Selecting previously unselected package git-man. Preparing to unpack .../28-git-man_1%3a2.20.1-2+deb10u3_all.deb ... Unpacking git-man (1:2.20.1-2+deb10u3) ... Selecting previously unselected package git. Preparing to unpack .../29-git_1%3a2.20.1-2+deb10u3_amd64.deb ... Unpacking git (1:2.20.1-2+deb10u3) ... Selecting previously unselected package libsasl2-modules:amd64. Preparing to unpack .../30-libsasl2-modules_2.1.27+dfsg-1+deb10u1_amd64.deb ... Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-1+deb10u1) ... Selecting previously unselected package libxext6:amd64. Preparing to unpack .../31-libxext6_2%3a1.3.3-1+b2_amd64.deb ... Unpacking libxext6:amd64 (2:1.3.3-1+b2) ... Selecting previously unselected package libxmuu1:amd64. Preparing to unpack .../32-libxmuu1_2%3a1.1.2-2+b3_amd64.deb ... Unpacking libxmuu1:amd64 (2:1.1.2-2+b3) ... Selecting previously unselected package patch. Preparing to unpack .../33-patch_2.7.6-3+deb10u1_amd64.deb ... Unpacking patch (2.7.6-3+deb10u1) ... Selecting previously unselected package publicsuffix. Preparing to unpack .../34-publicsuffix_20190415.1030-1_all.deb ... Unpacking publicsuffix (20190415.1030-1) ... Selecting previously unselected package xauth. Preparing to unpack .../35-xauth_1%3a1.0.10-1_amd64.deb ... Unpacking xauth (1:1.0.10-1) ... Setting up perl-modules-5.28 (5.28.1-6+deb10u1) ... Setting up libkeyutils1:amd64 (1.6-6) ... Setting up libpsl5:amd64 (0.20.2-2) ... Setting up libedit2:amd64 (3.1-20181209-1) ... Setting up libsasl2-modules:amd64 (2.1.27+dfsg-1+deb10u1) ... Setting up libnghttp2-14:amd64 (1.36.0-2+deb10u1) ... Setting up less (487-0.1+b1) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Setting up libxext6:amd64 (2:1.3.3-1+b2) ... Setting up krb5-locales (1.17-3+deb10u1) ... Setting up libldap-common (2.4.47+dfsg-3+deb10u6) ... Setting up libkrb5support0:amd64 (1.17-3+deb10u1) ... Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-1+deb10u1) ... Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ... Setting up patch (2.7.6-3+deb10u1) ... Setting up libpcre2-8-0:amd64 (10.32-5) ... Setting up libk5crypto3:amd64 (1.17-3+deb10u1) ... Setting up libsasl2-2:amd64 (2.1.27+dfsg-1+deb10u1) ... Setting up git-man (1:2.20.1-2+deb10u3) ... Setting up libssh2-1:amd64 (1.8.0-2.1) ... Setting up netbase (5.6) ... Setting up libkrb5-3:amd64 (1.17-3+deb10u1) ... Setting up openssl (1.1.1d-0+deb10u5) ... Setting up publicsuffix (20190415.1030-1) ... Setting up libxmuu1:amd64 (2:1.1.2-2+b3) ... Setting up libgdbm6:amd64 (1.18.1-4) ... Setting up libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u6) ... Setting up ca-certificates (20200601~deb10u2) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Updating certificates in /etc/ssl/certs... 137 added, 0 removed; done. Setting up libgssapi-krb5-2:amd64 (1.17-3+deb10u1) ... Setting up libgdbm-compat4:amd64 (1.18.1-4) ... Setting up libperl5.28:amd64 (5.28.1-6+deb10u1) ... Setting up xauth (1:1.0.10-1) ... Setting up openssh-client (1:7.9p1-10+deb10u2) ... Setting up libcurl3-gnutls:amd64 (7.64.0-4+deb10u1) ... Setting up perl (5.28.1-6+deb10u1) ... Setting up liberror-perl (0.17027-2) ... Setting up git (1:2.20.1-2+deb10u3) ... Processing triggers for libc-bin (2.28-10) ... Processing triggers for ca-certificates (20200601~deb10u2) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Cloning into 'kadena-balance'... cp: -r not specified; omitting directory '/kadena-balance/img' **The command '/bin/sh -c apt-get -y update && apt-get -y install git && git clone ${GIT_URL} && cp /kadena-balance/* /usr/share/nginx/html' returned a non-zero code: 1**
Adding the the "-R" flag fixes the issue and a successful build occurs.
Fix in #10
Dockerfile is failing build on Ubuntu 20
root@test:~/kadena-balance# docker build -t kadena . Sending build context to Docker daemon 276.5kB Step 1/3 : FROM nginx:1.17.5 ---> 540a289bab6c Step 2/3 : ENV GIT_URL https://github.com/kadena-community/kadena-balance ---> Using cache ---> 12016e0d5132 Step 3/3 : RUN apt-get -y update && apt-get -y install git && git clone ${GIT_URL} && cp /kadena-balance/* /usr/share/nginx/html ---> Running in ae3668bd798a Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB] Get:2 http://deb.debian.org/debian buster InRelease [122 kB] Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [268 kB] Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB] Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [9504 B] Fetched 8423 kB in 3s (2613 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: ca-certificates git-man krb5-locales less libcurl3-gnutls libedit2 liberror-perl libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libnghttp2-14 libpcre2-8-0 libperl5.28 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libssh2-1 libxext6 libxmuu1 netbase openssh-client openssl patch perl perl-base perl-modules-5.28 publicsuffix xauth Suggested packages: git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn gdbm-l10n krb5-doc krb5-user libsasl2-modules-gssapi-mit | libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql keychain libpam-ssh monkeysphere ssh-askpass ed diffutils-doc perl-doc libterm-readline-gnu-perl | libterm-readline-perl-perl make libb-debug-perl liblocale-codes-perl The following NEW packages will be installed: ca-certificates git git-man krb5-locales less libcurl3-gnutls libedit2 liberror-perl libgdbm-compat4 libgdbm6 libgssapi-krb5-2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.4-2 libldap-common libnghttp2-14 libpcre2-8-0 libperl5.28 libpsl5 librtmp1 libsasl2-2 libsasl2-modules libsasl2-modules-db libssh2-1 libxext6 libxmuu1 netbase openssh-client openssl patch perl perl-modules-5.28 publicsuffix xauth The following packages will be upgraded: perl-base 1 upgraded, 36 newly installed, 0 to remove and 27 not upgraded. Need to get 20.6 MB of archives. After this operation, 97.7 MB of additional disk space will be used. Get:1 http://security.debian.org/debian-security buster/updates/main amd64 libldap-common all 2.4.47+dfsg-3+deb10u6 [90.0 kB] Get:2 http://deb.debian.org/debian buster/main amd64 perl-base amd64 5.28.1-6+deb10u1 [1514 kB] Get:3 http://security.debian.org/debian-security buster/updates/main amd64 libldap-2.4-2 amd64 2.4.47+dfsg-3+deb10u6 [224 kB] Get:4 http://security.debian.org/debian-security buster/updates/main amd64 openssl amd64 1.1.1d-0+deb10u5 [844 kB] Get:5 http://deb.debian.org/debian buster/main amd64 perl-modules-5.28 all 5.28.1-6+deb10u1 [2873 kB] Get:6 http://deb.debian.org/debian buster/main amd64 libgdbm6 amd64 1.18.1-4 [64.7 kB] Get:7 http://deb.debian.org/debian buster/main amd64 libgdbm-compat4 amd64 1.18.1-4 [44.1 kB] Get:8 http://deb.debian.org/debian buster/main amd64 libperl5.28 amd64 5.28.1-6+deb10u1 [3894 kB] Get:9 http://deb.debian.org/debian buster/main amd64 perl amd64 5.28.1-6+deb10u1 [204 kB] Get:10 http://deb.debian.org/debian buster/main amd64 less amd64 487-0.1+b1 [129 kB] Get:11 http://deb.debian.org/debian buster/main amd64 netbase all 5.6 [19.4 kB] Get:12 http://deb.debian.org/debian buster/main amd64 krb5-locales all 1.17-3+deb10u1 [95.4 kB] Get:13 http://deb.debian.org/debian buster/main amd64 libsasl2-modules-db amd64 2.1.27+dfsg-1+deb10u1 [69.1 kB] Get:14 http://deb.debian.org/debian buster/main amd64 libsasl2-2 amd64 2.1.27+dfsg-1+deb10u1 [106 kB] Get:15 http://deb.debian.org/debian buster/main amd64 libedit2 amd64 3.1-20181209-1 [94.0 kB] Get:16 http://deb.debian.org/debian buster/main amd64 libkeyutils1 amd64 1.6-6 [15.0 kB] Get:17 http://deb.debian.org/debian buster/main amd64 libkrb5support0 amd64 1.17-3+deb10u1 [65.8 kB] Get:18 http://deb.debian.org/debian buster/main amd64 libk5crypto3 amd64 1.17-3+deb10u1 [122 kB] Get:19 http://deb.debian.org/debian buster/main amd64 libkrb5-3 amd64 1.17-3+deb10u1 [369 kB] Get:20 http://deb.debian.org/debian buster/main amd64 libgssapi-krb5-2 amd64 1.17-3+deb10u1 [158 kB] Get:21 http://deb.debian.org/debian buster/main amd64 openssh-client amd64 1:7.9p1-10+deb10u2 [782 kB] Get:22 http://deb.debian.org/debian buster/main amd64 ca-certificates all 20200601~deb10u2 [166 kB] Get:23 http://deb.debian.org/debian buster/main amd64 libnghttp2-14 amd64 1.36.0-2+deb10u1 [85.0 kB] Get:24 http://deb.debian.org/debian buster/main amd64 libpsl5 amd64 0.20.2-2 [53.7 kB] Get:25 http://deb.debian.org/debian buster/main amd64 librtmp1 amd64 2.4+20151223.gitfa8646d.1-2 [60.5 kB] Get:26 http://deb.debian.org/debian buster/main amd64 libssh2-1 amd64 1.8.0-2.1 [140 kB] Get:27 http://deb.debian.org/debian buster/main amd64 libcurl3-gnutls amd64 7.64.0-4+deb10u1 [330 kB] Get:28 http://deb.debian.org/debian buster/main amd64 libpcre2-8-0 amd64 10.32-5 [213 kB] Get:29 http://deb.debian.org/debian buster/main amd64 liberror-perl all 0.17027-2 [30.9 kB] Get:30 http://deb.debian.org/debian buster/main amd64 git-man all 1:2.20.1-2+deb10u3 [1620 kB] Get:31 http://deb.debian.org/debian buster/main amd64 git amd64 1:2.20.1-2+deb10u3 [5633 kB] Get:32 http://deb.debian.org/debian buster/main amd64 libsasl2-modules amd64 2.1.27+dfsg-1+deb10u1 [104 kB] Get:33 http://deb.debian.org/debian buster/main amd64 libxext6 amd64 2:1.3.3-1+b2 [52.5 kB] Get:34 http://deb.debian.org/debian buster/main amd64 libxmuu1 amd64 2:1.1.2-2+b3 [23.9 kB] Get:35 http://deb.debian.org/debian buster/main amd64 patch amd64 2.7.6-3+deb10u1 [126 kB] Get:36 http://deb.debian.org/debian buster/main amd64 publicsuffix all 20190415.1030-1 [116 kB] Get:37 http://deb.debian.org/debian buster/main amd64 xauth amd64 1:1.0.10-1 [40.3 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 20.6 MB in 1s (40.3 MB/s) (Reading database ... 7203 files and directories currently installed.) Preparing to unpack .../perl-base_5.28.1-6+deb10u1_amd64.deb ... Unpacking perl-base (5.28.1-6+deb10u1) over (5.28.1-6) ... Setting up perl-base (5.28.1-6+deb10u1) ... Selecting previously unselected package perl-modules-5.28. (Reading database ... 7203 files and directories currently installed.) Preparing to unpack .../00-perl-modules-5.28_5.28.1-6+deb10u1_all.deb ... Unpacking perl-modules-5.28 (5.28.1-6+deb10u1) ... Selecting previously unselected package libgdbm6:amd64. Preparing to unpack .../01-libgdbm6_1.18.1-4_amd64.deb ... Unpacking libgdbm6:amd64 (1.18.1-4) ... Selecting previously unselected package libgdbm-compat4:amd64. Preparing to unpack .../02-libgdbm-compat4_1.18.1-4_amd64.deb ... Unpacking libgdbm-compat4:amd64 (1.18.1-4) ... Selecting previously unselected package libperl5.28:amd64. Preparing to unpack .../03-libperl5.28_5.28.1-6+deb10u1_amd64.deb ... Unpacking libperl5.28:amd64 (5.28.1-6+deb10u1) ... Selecting previously unselected package perl. Preparing to unpack .../04-perl_5.28.1-6+deb10u1_amd64.deb ... Unpacking perl (5.28.1-6+deb10u1) ... Selecting previously unselected package less. Preparing to unpack .../05-less_487-0.1+b1_amd64.deb ... Unpacking less (487-0.1+b1) ... Selecting previously unselected package netbase. Preparing to unpack .../06-netbase_5.6_all.deb ... Unpacking netbase (5.6) ... Selecting previously unselected package krb5-locales. Preparing to unpack .../07-krb5-locales_1.17-3+deb10u1_all.deb ... Unpacking krb5-locales (1.17-3+deb10u1) ... Selecting previously unselected package libsasl2-modules-db:amd64. Preparing to unpack .../08-libsasl2-modules-db_2.1.27+dfsg-1+deb10u1_amd64.deb ... Unpacking libsasl2-modules-db:amd64 (2.1.27+dfsg-1+deb10u1) ... Selecting previously unselected package libsasl2-2:amd64. Preparing to unpack .../09-libsasl2-2_2.1.27+dfsg-1+deb10u1_amd64.deb ... Unpacking libsasl2-2:amd64 (2.1.27+dfsg-1+deb10u1) ... Selecting previously unselected package libldap-common. Preparing to unpack .../10-libldap-common_2.4.47+dfsg-3+deb10u6_all.deb ... Unpacking libldap-common (2.4.47+dfsg-3+deb10u6) ... Selecting previously unselected package libldap-2.4-2:amd64. Preparing to unpack .../11-libldap-2.4-2_2.4.47+dfsg-3+deb10u6_amd64.deb ... Unpacking libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u6) ... Selecting previously unselected package libedit2:amd64. Preparing to unpack .../12-libedit2_3.1-20181209-1_amd64.deb ... Unpacking libedit2:amd64 (3.1-20181209-1) ... Selecting previously unselected package libkeyutils1:amd64. Preparing to unpack .../13-libkeyutils1_1.6-6_amd64.deb ... Unpacking libkeyutils1:amd64 (1.6-6) ... Selecting previously unselected package libkrb5support0:amd64. Preparing to unpack .../14-libkrb5support0_1.17-3+deb10u1_amd64.deb ... Unpacking libkrb5support0:amd64 (1.17-3+deb10u1) ... Selecting previously unselected package libk5crypto3:amd64. Preparing to unpack .../15-libk5crypto3_1.17-3+deb10u1_amd64.deb ... Unpacking libk5crypto3:amd64 (1.17-3+deb10u1) ... Selecting previously unselected package libkrb5-3:amd64. Preparing to unpack .../16-libkrb5-3_1.17-3+deb10u1_amd64.deb ... Unpacking libkrb5-3:amd64 (1.17-3+deb10u1) ... Selecting previously unselected package libgssapi-krb5-2:amd64. Preparing to unpack .../17-libgssapi-krb5-2_1.17-3+deb10u1_amd64.deb ... Unpacking libgssapi-krb5-2:amd64 (1.17-3+deb10u1) ... Selecting previously unselected package openssh-client. Preparing to unpack .../18-openssh-client_1%3a7.9p1-10+deb10u2_amd64.deb ... Unpacking openssh-client (1:7.9p1-10+deb10u2) ... Selecting previously unselected package openssl. Preparing to unpack .../19-openssl_1.1.1d-0+deb10u5_amd64.deb ... Unpacking openssl (1.1.1d-0+deb10u5) ... Selecting previously unselected package ca-certificates. Preparing to unpack .../20-ca-certificates_20200601~deb10u2_all.deb ... Unpacking ca-certificates (20200601~deb10u2) ... Selecting previously unselected package libnghttp2-14:amd64. Preparing to unpack .../21-libnghttp2-14_1.36.0-2+deb10u1_amd64.deb ... Unpacking libnghttp2-14:amd64 (1.36.0-2+deb10u1) ... Selecting previously unselected package libpsl5:amd64. Preparing to unpack .../22-libpsl5_0.20.2-2_amd64.deb ... Unpacking libpsl5:amd64 (0.20.2-2) ... Selecting previously unselected package librtmp1:amd64. Preparing to unpack .../23-librtmp1_2.4+20151223.gitfa8646d.1-2_amd64.deb ... Unpacking librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ... Selecting previously unselected package libssh2-1:amd64. Preparing to unpack .../24-libssh2-1_1.8.0-2.1_amd64.deb ... Unpacking libssh2-1:amd64 (1.8.0-2.1) ... Selecting previously unselected package libcurl3-gnutls:amd64. Preparing to unpack .../25-libcurl3-gnutls_7.64.0-4+deb10u1_amd64.deb ... Unpacking libcurl3-gnutls:amd64 (7.64.0-4+deb10u1) ... Selecting previously unselected package libpcre2-8-0:amd64. Preparing to unpack .../26-libpcre2-8-0_10.32-5_amd64.deb ... Unpacking libpcre2-8-0:amd64 (10.32-5) ... Selecting previously unselected package liberror-perl. Preparing to unpack .../27-liberror-perl_0.17027-2_all.deb ... Unpacking liberror-perl (0.17027-2) ... Selecting previously unselected package git-man. Preparing to unpack .../28-git-man_1%3a2.20.1-2+deb10u3_all.deb ... Unpacking git-man (1:2.20.1-2+deb10u3) ... Selecting previously unselected package git. Preparing to unpack .../29-git_1%3a2.20.1-2+deb10u3_amd64.deb ... Unpacking git (1:2.20.1-2+deb10u3) ... Selecting previously unselected package libsasl2-modules:amd64. Preparing to unpack .../30-libsasl2-modules_2.1.27+dfsg-1+deb10u1_amd64.deb ... Unpacking libsasl2-modules:amd64 (2.1.27+dfsg-1+deb10u1) ... Selecting previously unselected package libxext6:amd64. Preparing to unpack .../31-libxext6_2%3a1.3.3-1+b2_amd64.deb ... Unpacking libxext6:amd64 (2:1.3.3-1+b2) ... Selecting previously unselected package libxmuu1:amd64. Preparing to unpack .../32-libxmuu1_2%3a1.1.2-2+b3_amd64.deb ... Unpacking libxmuu1:amd64 (2:1.1.2-2+b3) ... Selecting previously unselected package patch. Preparing to unpack .../33-patch_2.7.6-3+deb10u1_amd64.deb ... Unpacking patch (2.7.6-3+deb10u1) ... Selecting previously unselected package publicsuffix. Preparing to unpack .../34-publicsuffix_20190415.1030-1_all.deb ... Unpacking publicsuffix (20190415.1030-1) ... Selecting previously unselected package xauth. Preparing to unpack .../35-xauth_1%3a1.0.10-1_amd64.deb ... Unpacking xauth (1:1.0.10-1) ... Setting up perl-modules-5.28 (5.28.1-6+deb10u1) ... Setting up libkeyutils1:amd64 (1.6-6) ... Setting up libpsl5:amd64 (0.20.2-2) ... Setting up libedit2:amd64 (3.1-20181209-1) ... Setting up libsasl2-modules:amd64 (2.1.27+dfsg-1+deb10u1) ... Setting up libnghttp2-14:amd64 (1.36.0-2+deb10u1) ... Setting up less (487-0.1+b1) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Setting up libxext6:amd64 (2:1.3.3-1+b2) ... Setting up krb5-locales (1.17-3+deb10u1) ... Setting up libldap-common (2.4.47+dfsg-3+deb10u6) ... Setting up libkrb5support0:amd64 (1.17-3+deb10u1) ... Setting up libsasl2-modules-db:amd64 (2.1.27+dfsg-1+deb10u1) ... Setting up librtmp1:amd64 (2.4+20151223.gitfa8646d.1-2) ... Setting up patch (2.7.6-3+deb10u1) ... Setting up libpcre2-8-0:amd64 (10.32-5) ... Setting up libk5crypto3:amd64 (1.17-3+deb10u1) ... Setting up libsasl2-2:amd64 (2.1.27+dfsg-1+deb10u1) ... Setting up git-man (1:2.20.1-2+deb10u3) ... Setting up libssh2-1:amd64 (1.8.0-2.1) ... Setting up netbase (5.6) ... Setting up libkrb5-3:amd64 (1.17-3+deb10u1) ... Setting up openssl (1.1.1d-0+deb10u5) ... Setting up publicsuffix (20190415.1030-1) ... Setting up libxmuu1:amd64 (2:1.1.2-2+b3) ... Setting up libgdbm6:amd64 (1.18.1-4) ... Setting up libldap-2.4-2:amd64 (2.4.47+dfsg-3+deb10u6) ... Setting up ca-certificates (20200601~deb10u2) ... debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline Updating certificates in /etc/ssl/certs... 137 added, 0 removed; done. Setting up libgssapi-krb5-2:amd64 (1.17-3+deb10u1) ... Setting up libgdbm-compat4:amd64 (1.18.1-4) ... Setting up libperl5.28:amd64 (5.28.1-6+deb10u1) ... Setting up xauth (1:1.0.10-1) ... Setting up openssh-client (1:7.9p1-10+deb10u2) ... Setting up libcurl3-gnutls:amd64 (7.64.0-4+deb10u1) ... Setting up perl (5.28.1-6+deb10u1) ... Setting up liberror-perl (0.17027-2) ... Setting up git (1:2.20.1-2+deb10u3) ... Processing triggers for libc-bin (2.28-10) ... Processing triggers for ca-certificates (20200601~deb10u2) ... Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d... done. Cloning into 'kadena-balance'... cp: -r not specified; omitting directory '/kadena-balance/img' **The command '/bin/sh -c apt-get -y update && apt-get -y install git && git clone ${GIT_URL} && cp /kadena-balance/* /usr/share/nginx/html' returned a non-zero code: 1**
Adding the the "-R" flag fixes the issue and a successful build occurs.