readable-pku_node Exit 1 ( TAG=1.4.2 )
Closed this issue · 1 comments
perestoronin commented
Помогите пожалуйста запустить:
# docker-compose start
Starting node-pku ... done
ws /0/pku #
ws /0/pku # docker-compose build node-pku
Building node-pku
Step 1/15 : FROM node:12.16.3-stretch
---> bdca973cfa07
Step 2/15 : ENV LOCALTIME Europe/Moscow
---> Using cache
---> 158cd527d825
Step 3/15 : RUN set -ex && mkdir -p /app/node_modules /app/build /app/files /app/logs && mkdir /files && chown node:node /files
---> Using cache
---> 9b19d6cd9346
Step 4/15 : COPY .docker/entrypoint.sh /entrypoint.sh
---> Using cache
---> ae2d5b1b3b71
Step 5/15 : COPY node_modules /app/node_modules
---> Using cache
---> 46c8d39f5156
Step 6/15 : COPY build /app/build
---> Using cache
---> a3280a8a3775
Step 7/15 : RUN chown -R node:node /app
---> Using cache
---> 0894e0041a45
Step 8/15 : ENV NPM_CONFIG_LOGLEVEL warn
---> Using cache
---> 30c8b3f5d73c
Step 9/15 : ARG UID
---> Using cache
---> 1ff6df9ecba3
Step 10/15 : ARG GID
---> Using cache
---> 0ba89ab19fd3
Step 11/15 : RUN usermod --non-unique --uid ${UID} node
---> Using cache
---> 5b5aeaedeb4a
Step 12/15 : RUN groupmod -g ${GID} node
---> Using cache
---> 811e49972269
Step 13/15 : USER node
---> Using cache
---> dbec4ae55778
Step 14/15 : WORKDIR /app
---> Using cache
---> 72cbc9256572
Step 15/15 : ENTRYPOINT ["/usr/local/bin/node"]
---> Using cache
---> fb972ade77c7
Successfully built fb972ade77c7
Successfully tagged cr.yandex/crpkv4vq4nvrqqi6ruci/node-pku:1.4.2
# docker-compose ps
Name Command State Ports
-------------------------------------------------------------------
readable-pku_node /usr/local/bin/node /app/b ... Exit 1
# docker-compose up
Starting readable-pku_node ... done
Attaching to readable-pku_node
readable-pku_node | internal/modules/cjs/loader.js:960
readable-pku_node | throw err;
readable-pku_node | ^
readable-pku_node |
readable-pku_node | Error: Cannot find module '/app/build/index.js'
readable-pku_node | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:957:15)
readable-pku_node | at Function.Module._load (internal/modules/cjs/loader.js:840:27)
readable-pku_node | at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
readable-pku_node | at internal/main/run_main_module.js:18:47 {
readable-pku_node | code: 'MODULE_NOT_FOUND',
readable-pku_node | requireStack: []
readable-pku_node | }
readable-pku_node exited with code 1
perestoronin commented
Две команды:
npm install
npm run build
решили issue