相关疑难解决方法(0)

找不到入口点文件

我有一个使用此命令的docker镜像:

FROM ruby:2.4-alpine
WORKDIR /usr/src/app

COPY Gemfile /usr/src/app/Gemfile
COPY Gemfile.lock /usr/src/app/Gemfile.lock

RUN bundle config build.nokogiri --use-system-libraries
RUN bundle install --without development test

VOLUME /state

COPY . /usr/src/app/

ENTRYPOINT ["api-entrypoint.sh"]
CMD ["foreman", "start"]
Run Code Online (Sandbox Code Playgroud)

它正确构建但是当我尝试运行bash时,例如,我得到了这个 container_linux.go:247: starting container process caused "exec: \"api-entrypoint.sh\": executable file not found in $PATH" docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"api-entrypoint.sh\": executable file not found in $PATH".

我尝试复制入口点文件,给它可执行权限以及CMD......没有任何效果

docker dockerfile

15
推荐指数
5
解决办法
2万
查看次数

标签 统计

docker ×1

dockerfile ×1