open-wa / wa-automate-docker

💬 🤖 The easiest way to turn your WhatsApp into an API. Be sure to 🌟 this repository for updates!
106 stars 31 forks source link

Error in building Dockerfile #37

Closed manojsitapara closed 2 years ago

manojsitapara commented 2 years ago

I am getting following error when building docker image

[+] Building 32.4s (10/13)
 => [internal] load build definition from Dockerfile                                                                                                                             0.1s
 => => transferring dockerfile: 32B                                                                                                                                              0.1s
 => [internal] load .dockerignore                                                                                                                                                0.1s
 => => transferring context: 34B                                                                                                                                                 0.0s
 => resolve image config for docker.io/docker/dockerfile:1.3-labs                                                                                                               13.8s
 => CACHED docker-image://docker.io/docker/dockerfile:1.3-labs@sha256:250ce669e1aeeb5ffb892b18039c3f0801466536cb4210c8eb2638e628859bfd                                           0.0s
 => [internal] load .dockerignore                                                                                                                                                0.0s
 => [internal] load build definition from Dockerfile                                                                                                                             0.0s
 => [internal] load metadata for docker.io/library/node:current-stretch-slim                                                                                                     2.7s
 => [internal] load build context                                                                                                                                                0.1s
 => => transferring context: 382B                                                                                                                                                0.0s
 => CACHED [1/5] FROM docker.io/library/node:current-stretch-slim@sha256:184cda205102d79e97707c81c0a47ab310ef8611df87988327f9b76468513bd2                                        0.0s
 => ERROR [2/5] RUN <<eot bash                                                                                                                                                  15.2s
------
 > [2/5] RUN <<eot bash:
#9 0.549
#9 0.551 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#9 0.551
#9 0.717 Get:1 http://security.debian.org/debian-security stretch/updates InRelease [53.0 kB]
#9 0.935 Ign:2 http://deb.debian.org/debian stretch InRelease
#9 1.008 Get:3 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [760 kB]
#9 1.319 Get:4 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]
#9 1.730 Get:5 http://deb.debian.org/debian stretch Release [118 kB]
#9 2.160 Get:6 http://deb.debian.org/debian stretch Release.gpg [3177 B]
#9 2.341 Get:7 http://deb.debian.org/debian stretch/main amd64 Packages [7080 kB]
#9 5.334 Fetched 8107 kB in 4s (1708 kB/s)
#9 5.334 Reading package lists...
#9 6.838 Building dependency tree...
#9 7.083 Reading state information...
#9 7.120 2 packages can be upgraded. Run 'apt list --upgradable' to see them.
#9 7.130
#9 7.131 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#9 7.133
#9 7.160 Reading package lists...
#9 8.414 Building dependency tree...
#9 8.605 Reading state information...
#9 8.845 The following package was automatically installed and is no longer required:
#9 8.845   xz-utils
#9 8.845 Use 'apt autoremove' to remove it.
#9 8.846 The following additional packages will be installed:
#9 8.846   libffi6 libgmp10 libgnutls30 libhogweed4 libidn11 libidn2-0 libnettle6
#9 8.848   libp11-kit0 libpsl5 libtasn1-6 libunistring0
#9 8.882 Suggested packages:
#9 8.882   gnutls-bin spell
#9 8.882 Recommended packages:
#9 8.882   publicsuffix ca-certificates
#9 9.038 The following NEW packages will be installed:
#9 9.038   libffi6 libgmp10 libgnutls30 libhogweed4 libidn11 libidn2-0 libnettle6
#9 9.039   libp11-kit0 libpsl5 libtasn1-6 libunistring0 nano wget
#9 9.108 0 upgraded, 13 newly installed, 0 to remove and 2 not upgraded.
#9 9.108 Need to get 3443 kB of archives.
#9 9.108 After this operation, 10.9 MB of additional disk space will be used.
#9 9.108 Get:1 http://security.debian.org/debian-security stretch/updates/main amd64 libgmp10 amd64 2:6.1.2+dfsg-1+deb9u1 [253 kB]
#9 9.140 Get:2 http://deb.debian.org/debian stretch/main amd64 nano amd64 2.7.4-1 [485 kB]
#9 9.219 Get:3 http://security.debian.org/debian-security stretch/updates/main amd64 libnettle6 amd64 3.3-1+deb9u1 [192 kB]
#9 9.307 Get:4 http://security.debian.org/debian-security stretch/updates/main amd64 libhogweed4 amd64 3.3-1+deb9u1 [136 kB]
#9 9.330 Get:5 http://security.debian.org/debian-security stretch/updates/main amd64 libp11-kit0 amd64 0.23.3-2+deb9u1 [112 kB]
#9 9.368 Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 libgnutls30 amd64 3.5.8-5+deb9u6 [897 kB]
#9 9.515 Get:7 http://deb.debian.org/debian stretch/main amd64 libidn11 amd64 1.33-1+deb9u1 [115 kB]
#9 9.544 Get:8 http://deb.debian.org/debian stretch/main amd64 libffi6 amd64 3.2.1-6 [20.4 kB]
#9 9.568 Get:9 http://deb.debian.org/debian stretch/main amd64 libtasn1-6 amd64 4.10-1.1+deb9u1 [50.6 kB]
#9 9.577 Get:10 http://deb.debian.org/debian stretch/main amd64 libunistring0 amd64 0.9.6+really0.9.3-0.1 [279 kB]
#9 9.630 Get:11 http://deb.debian.org/debian stretch/main amd64 libidn2-0 amd64 0.16-1+deb9u1 [60.7 kB]
#9 9.640 Get:12 http://deb.debian.org/debian stretch/main amd64 libpsl5 amd64 0.17.0-3 [41.8 kB]
#9 9.641 Get:13 http://deb.debian.org/debian stretch/main amd64 wget amd64 1.18-5+deb9u3 [800 kB]
#9 10.75 debconf: delaying package configuration, since apt-utils is not installed
#9 10.78 Fetched 3443 kB in 1s (2450 kB/s)
#9 10.85 Selecting previously unselected package nano.
(Reading database ... 6368 files and directories currently installed.)
#9 10.87 Preparing to unpack .../00-nano_2.7.4-1_amd64.deb ...
#9 10.88 Unpacking nano (2.7.4-1) ...
#9 11.07 Selecting previously unselected package libgmp10:amd64.
#9 11.07 Preparing to unpack .../01-libgmp10_2%3a6.1.2+dfsg-1+deb9u1_amd64.deb ...
#9 11.08 Unpacking libgmp10:amd64 (2:6.1.2+dfsg-1+deb9u1) ...
#9 11.25 Selecting previously unselected package libnettle6:amd64.
#9 11.26 Preparing to unpack .../02-libnettle6_3.3-1+deb9u1_amd64.deb ...
#9 11.26 Unpacking libnettle6:amd64 (3.3-1+deb9u1) ...
#9 11.35 Selecting previously unselected package libhogweed4:amd64.
#9 11.35 Preparing to unpack .../03-libhogweed4_3.3-1+deb9u1_amd64.deb ...
#9 11.36 Unpacking libhogweed4:amd64 (3.3-1+deb9u1) ...
#9 11.48 Selecting previously unselected package libidn11:amd64.
#9 11.48 Preparing to unpack .../04-libidn11_1.33-1+deb9u1_amd64.deb ...
#9 11.49 Unpacking libidn11:amd64 (1.33-1+deb9u1) ...
#9 11.58 Selecting previously unselected package libffi6:amd64.
#9 11.59 Preparing to unpack .../05-libffi6_3.2.1-6_amd64.deb ...
#9 11.59 Unpacking libffi6:amd64 (3.2.1-6) ...
#9 11.65 Selecting previously unselected package libp11-kit0:amd64.
#9 11.65 Preparing to unpack .../06-libp11-kit0_0.23.3-2+deb9u1_amd64.deb ...
#9 11.66 Unpacking libp11-kit0:amd64 (0.23.3-2+deb9u1) ...
#9 11.73 Selecting previously unselected package libtasn1-6:amd64.
#9 11.73 Preparing to unpack .../07-libtasn1-6_4.10-1.1+deb9u1_amd64.deb ...
#9 11.73 Unpacking libtasn1-6:amd64 (4.10-1.1+deb9u1) ...
#9 11.87 Selecting previously unselected package libgnutls30:amd64.
#9 11.87 Preparing to unpack .../08-libgnutls30_3.5.8-5+deb9u6_amd64.deb ...
#9 11.89 Unpacking libgnutls30:amd64 (3.5.8-5+deb9u6) ...
#9 12.07 Selecting previously unselected package libunistring0:amd64.
#9 12.07 Preparing to unpack .../09-libunistring0_0.9.6+really0.9.3-0.1_amd64.deb ...
#9 12.08 Unpacking libunistring0:amd64 (0.9.6+really0.9.3-0.1) ...
#9 12.29 Selecting previously unselected package libidn2-0:amd64.
#9 12.30 Preparing to unpack .../10-libidn2-0_0.16-1+deb9u1_amd64.deb ...
#9 12.31 Unpacking libidn2-0:amd64 (0.16-1+deb9u1) ...
#9 12.39 Selecting previously unselected package libpsl5:amd64.
#9 12.39 Preparing to unpack .../11-libpsl5_0.17.0-3_amd64.deb ...
#9 12.40 Unpacking libpsl5:amd64 (0.17.0-3) ...
#9 12.45 Selecting previously unselected package wget.
#9 12.45 Preparing to unpack .../12-wget_1.18-5+deb9u3_amd64.deb ...
#9 12.46 Unpacking wget (1.18-5+deb9u3) ...
#9 12.69 Setting up libnettle6:amd64 (3.3-1+deb9u1) ...
#9 12.73 Setting up libtasn1-6:amd64 (4.10-1.1+deb9u1) ...
#9 12.75 Setting up nano (2.7.4-1) ...
#9 12.77 update-alternatives: using /bin/nano to provide /usr/bin/editor (editor) in auto mode
#9 12.77 update-alternatives: warning: skip creation of /usr/share/man/man1/editor.1.gz because associated file /usr/share/man/man1/nano.1.gz (of link group editor) doesn't exist
#9 12.78 update-alternatives: using /bin/nano to provide /usr/bin/pico (pico) in auto mode
#9 12.78 update-alternatives: warning: skip creation of /usr/share/man/man1/pico.1.gz because associated file /usr/share/man/man1/nano.1.gz (of link group pico) doesn't exist
#9 12.79 Setting up libgmp10:amd64 (2:6.1.2+dfsg-1+deb9u1) ...
#9 12.81 Processing triggers for libc-bin (2.24-11+deb9u4) ...
#9 12.84 Setting up libunistring0:amd64 (0.9.6+really0.9.3-0.1) ...
#9 12.87 Setting up libffi6:amd64 (3.2.1-6) ...
#9 12.89 Setting up libidn11:amd64 (1.33-1+deb9u1) ...
#9 12.96 Setting up libidn2-0:amd64 (0.16-1+deb9u1) ...
#9 12.98 Setting up libpsl5:amd64 (0.17.0-3) ...
#9 13.00 Setting up libhogweed4:amd64 (3.3-1+deb9u1) ...
#9 13.04 Setting up libp11-kit0:amd64 (0.23.3-2+deb9u1) ...
#9 13.07 Setting up libgnutls30:amd64 (3.5.8-5+deb9u6) ...
#9 13.10 Setting up wget (1.18-5+deb9u3) ...
#9 13.13 Processing triggers for libc-bin (2.24-11+deb9u4) ...
#9 13.22
#9 13.22 WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
#9 13.22
#9 13.23 Reading package lists...
#9 14.54 Building dependency tree...
#9 14.77 Reading state information...
#9 14.81 Calculating upgrade...
#9 14.98 The following package was automatically installed and is no longer required:
#9 14.98   xz-utils
#9 14.98 Use 'apt autoremove' to remove it.
#9 15.00 The following packages will be upgraded:
#9 15.00   tzdata zlib1g
#9 15.01 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
#9 15.01 Need to get 369 kB of archives.
#9 15.01 After this operation, 0 B of additional disk space will be used.
#9 15.01 Do you want to continue? [Y/n] Abort.
------
executor failed running [/bin/sh -c <<eot bash
  mkdir -p /usr/src/app
  mkdir -p /usr/src/app/node_modules
  mkdir -p /sessions
  apt update
  apt install nano wget --no-install-recommends  -y
  apt upgrade
  cd /tmp
  wget -q --no-check-certificate https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  apt install ./google-chrome-stable_current_amd64.deb -y
  rm google-chrome-stable_current_amd64.deb
  rm -rf /var/lib/apt/lists/*
  groupadd -r pptruser && useradd -r -g pptruser -G audio,video pptruser
  mkdir -p /home/pptruser/Downloads
  chown -R pptruser:pptruser /home/pptruser
  chown -R pptruser:pptruser /usr/src/app
  chown -R pptruser:pptruser /sessions
  chown -R pptruser:pptruser /usr/src/app/node_modules
eot]: exit code: 1
fire17 commented 2 years ago

change apt upgrade to apt upgrade -y