Skip to content

Docker build fails #217

Closed
Closed
@aliozcan

Description

@aliozcan

docker build -t express-typescript-boilerplate . throws the following error:

Sending build context to Docker daemon  2.481MB
Step 1/6 : FROM node:alpine
 ---> b5e2b4c5089e
Step 2/6 : WORKDIR /usr/src/app
 ---> Using cache
 ---> 63e052961bc4
Step 3/6 : RUN npm install yarn -g
 ---> Running in f32549a4a08a
npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/yarn/bin/yarn.js
npm ERR! dest /usr/local/bin/yarn
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/yarn/bin/yarn.js' -> '/usr/local/bin/yarn'
npm ERR! File exists: /usr/local/bin/yarn
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-09-13T13_19_44_863Z-debug.log
The command '/bin/sh -c npm install yarn -g' returned a non-zero code: 239

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions