Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

docker error "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.

//Add next line
# syntax=docker/dockerfile:1
FROM node:12-alpine
RUN apk add --no-cache python2 g++ make  <--- this line resolve error
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "src/index.js"]
 
PREVIOUS NEXT
Tagged: #docker #error #optional #dependency #failed #compatibility #Excluding
ADD COMMENT
Topic
Name
6+3 =