我有這個命令泊塢窗圖像:入口點找不到文件
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"]
它建立正確的,但是當我嘗試運行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
可以獲得可執行權限...沒有任何工作
我使用'ADD'並最終設置正確的權限我的入口腳本,即:'ADD entry.sh /entry.sh 運行chmod + X /entry.sh 入口點/ entry.sh' – Cyclonecode