Has anyone experienced the following error during deployment -->Getting the following ERROR during METEOR DEPLOYMENT WITH DOCKER ON AWS CODE BUILD. DOCKERFILE
# Build
FROM
ubuntu:18.04
# Install meteor
RUN
apt-get update && apt-get install build-essential g++ python -y
RUN
apt-get install curl -y
RUN
curl
https://install.meteor.com
| sh
RUN
apt-get install git -y
# Build the app
ENV
NODE_OPTIONS='--max_old_space_size=16384'
WORKDIR
/opt/app
COPY
. ./
RUN
git config --global url."https://".insteadOf git://
RUN
meteor npm install
RUN
NODE_TLS_REJECT_UNAUTHORIZED=0 meteor build ../output --server-only --allow-superuser --debug
RUN
cd ../output/ && tar -xf app.tar.gz
# Package
FROM
node:8-alpine
ENV
ROOT_URL='
http://localhost:8080
'
ENV
MONGO_URL='
mongodb://localhost:27017/myapp
'
ENV
METEOR_SETTINGS='{}'
ENV
PORT 8080
WORKDIR
/opt/app
RUN
apk add python make g++
COPY
--from=0 /opt/output/bundle ./
ENV
NODE_TLS_REJECT_UNAUTHORIZED=0
RUN
cd ./programs/server && npm install
EXPOSE
8080
CMD
[ "node", "main.js" ]
FOLLOWING COMMAND
$ RUN apt-get update && apt-get install build-essential g++ python -y
gives error.
270 Preparing to unpack .../libc6_2.27-3ubuntu1.5_amd64.deb ...
271 debconf: unable to initialize frontend: Dialog
272 debconf: (TERM is not set, so the dialog frontend is not usable.)
273 debconf: falling back to frontend: Readline
274 debconf: unable to initialize frontend: Readline
275 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 7.)
276 debconf: falling back to frontend: Teletype
277 ERROR: Your kernel version indicates a revision number
278 of 255 or greater. Glibc has a number of built in
279 assumptions that this revision number is less than 255.
280 If you\'ve built your own kernel, please make sure that any
281 custom version numbers are appended to the upstream
282 kernel number with a dash or some other delimiter.
283
284 dpkg: error processing archive /var/cache/apt/archives/libc6_2.27-3ubuntu1.5_amd64.deb (--unpack):
285 new libc6:amd64 package pre-installation script subprocess returned error exit status 1
286 Errors were encountered while processing:
287 /var/cache/apt/archives/libc6_2.27-3ubuntu1.5_amd64.deb
288 E: Sub-process /usr/bin/dpkg returned an error code (1)
289 The command '/bin/sh -c apt-get update && apt-get install build-essential g++
(