DEV Community

ismailalabou
ismailalabou

Posted on

I was trying to build this docker image based on the following Dockerfile until this happened !!

COMMAND that triggered this error:

docker build -t developerfolio:latest .

DockerFile:

# This file is the main docker file configurations

# Official Node JS runtime as a parent image
FROM node:10.16.0-alpine

# Set the working directory to ./app
WORKDIR ./app

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./

# Install any needed packages
RUN npm install

# Audit fix npm packages
RUN npm audit fix

# Bundle app source
COPY . /app

# Make port 3000 available to the world outside this container
EXPOSE 3000

# Run app.js when the container launches
CMD ["npm", "start"]
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
alb_isma profile image
ismailalabou • Edited

hello @bdougieyo , can you look at this!

Collapse
 
alb_isma profile image
ismailalabou • Edited