Я продолжаю получать Could not find a required file
за мои docker build
, и я не знаю почему. Я новичок в docker, есть ли способ, которым я могу "пройти" процесс сборки? Я запускаю
docker build .
, когда я ВНУТРИ /redribbon-client
каталога
вывод:
$ docker build .
Sending build context to Docker daemon 315.9MB
Step 1/6 : FROM node:alpine as builder
---> 4acd7c5129dc
Step 2/6 : WORKDIR "/client"
---> Using cache
---> c57cd917bb87
Step 3/6 : COPY ./package.json .
---> Using cache
---> 4098880ac4a5
Step 4/6 : RUN npm install
---> Using cache
---> 1015d2aec06c
Step 5/6 : COPY ./src/ .
---> Using cache
---> 5c895812a8c8
Step 6/6 : RUN npm run start
---> Running in 63ff064c6e84
> redribbon-client@0.1.0 start /client
> react-scripts start
Could not find a required file.
Name: index.html
Searched in: /client/public
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! redribbon-client@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the redribbon-client@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-02-04T03_06_26_933Z-debug.log
структура проекта:
/redribbon-client
Dockerfile
/src
/public
package.json
Dockerfile
FROM node:alpine as builder
WORKDIR "/client"
COPY ./package.json .
RUN npm install
COPY ./src/ .
RUN npm run start