【发布时间】:2018-08-01 19:39:39
【问题描述】:
我有什么理由需要在我的入口点脚本上 chmod +x 吗? Redis 似乎没有在他们的 dockerfile (https://github.com/docker-library/redis/blob/109323988b7663bceaf4a01c3353f8934dfc002e/2.8/Dockerfile) 中为其入口点脚本执行此操作。
Dockerfile:
# Generic Docker Image for Running Node app from Git Repository
FROM node:0.10.33-slim
ENV NODE_ENV production
# Add script to pull Node app from Git and run the app
COPY docker-node-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 8080
CMD ["--help"]
【问题讨论】:
标签: docker dockerfile