Closed glynhudson closed 5 years ago
Hum works for me :(
$ docker build .
Sending build context to Docker daemon 292.4kB
Step 1/11 : FROM node:10-jessie
---> 2f88282a1e34
Step 2/11 : ARG PORT=3000
---> Running in 2de8535cd5e7
Removing intermediate container 2de8535cd5e7
---> e590125281c3
Step 3/11 : ENV PORT $PORT
---> Running in 9389eb5ec402
Removing intermediate container 9389eb5ec402
---> 8bf47e838402
Step 4/11 : EXPOSE $PORT
---> Running in bb46a9589fd3
Removing intermediate container bb46a9589fd3
---> 37bdeffb8d6e
Step 5/11 : ARG NODE_ENV=production
---> Running in de613b312827
Removing intermediate container de613b312827
---> 5ff14e4aa504
Step 6/11 : ENV NODE_ENV $NODE_ENV
---> Running in f2beb5df589d
Removing intermediate container f2beb5df589d
---> 9e6a25d3c058
Step 7/11 : WORKDIR /app
Removing intermediate container e49c9e099a8e
---> ed9343f38c02
Step 8/11 : COPY . /app
---> d0e28280c38a
Step 9/11 : RUN npm install
---> Running in 7f05fff8acd1
> serialport@6.2.2 install /app/node_modules/serialport
> prebuild-install || node-gyp rebuild
added 339 packages from 224 contributors and audited 4680 packages in 6.811s
found 0 vulnerabilities
Removing intermediate container 7f05fff8acd1
---> e8be434bd278
Step 10/11 : USER node
---> Running in 4ea2d149a04d
Removing intermediate container 4ea2d149a04d
---> 136bd4a885f2
Step 11/11 : CMD [ "npm", "start" ]
---> Running in da0af3257743
Removing intermediate container da0af3257743
---> 5a6302883063
Successfully built 5a6302883063
Update you version of Docker?
$ docker --version
Docker version 18.04.0-ce, build 3d479c0
$ uname -a
Linux moonshade 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Awesome! Yup, that was it.
I was running Docker version 1.12.0, build 8eab29e
Upgrading to docker Docker version 18.09.3, build 774a1f4
fixed the issue. The container now builds :+1:
I followed this guide to remove old version then install docker CE on Ubuntu from dockers repository: https://docs.docker.com/install/linux/docker-ce/ubuntu/
uname -a
Linux xxxx 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Testing on docker V1.12.0 on Ubuntu