Heroku:找不到docker入口点

问题描述 投票:0回答:1

我正在尝试在Heroku上部署一个项目。我已经设置了bash入口点应用程序,该应用程序位于应用程序的根目录中。 Dockerfile内容:

FROM node:10

# Create app directory
WORKDIR /usr/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 ./

RUN npm install
# If you are building your code for production
# RUN npm ci --only=production

# Bundle app source
COPY . .

RUN entrypoint.sh

[heroku尝试部署时,在此行中调用入口点时失败:

RUN entrypoint.sh

说该entrypoint.sh即使位于项目目录中并且已添加到容器中,也找不到。请参见项目结构here

docker heroku dockerfile heroku-toolbelt heroku-cli
1个回答
1
投票

使用docker文件中的ENTRYPOINT指令在入口点设置脚本ENTRYPOINT ["./entrypoint.sh"]还要确保它是可执行的(权限)

© www.soinside.com 2019 - 2024. All rights reserved.