Мой файл Docker
FROM node:10.16 # Create app directory WORKDIR /node dist/api/server.js # Install app dependencies COPY . . # Run the npm commands RUN npm install -g node-pre-gyp --unsafe-perm RUN npm install -g node-gyp --unsafe-perm RUN npm install -g grpc --unsafe-perm RUN npm install -g bcrypt --unsafe-perm RUN npm install bcrypt --save --unsafe-perm RUN npm install RUN npm run build # Bundle app source COPY . . # Start the development/staging server EXPOSE 3000
Я решил ошибку, изменив файл Docker
ИЗ узла: 12.13
WORKDIR / usr / src / app
COPY. .
RUN npm install
EXPOSE 4200 CMD ["npm", "start"]