这是我的Dockerfile尝试构建:
FROM ubuntu:latest
# install flask server
RUN apt-get update -y
RUN apt-get install -y python-pip python-dev build-essential
COPY app.py /
RUN pip install flask
# install ruby
RUN \
apt-get install -y ruby ruby-dev ruby-bundler && \
rm -rf /var/lib/apt/lists/*
# install lua
RUN apt-get update -y && apt-get install -y luajit luarocks
# Define default command.
CMD [“python”, “app.py”]
然而,它出现了错误 / bin / sh:1:[“python”,:找不到
我不知道为什么会这样。有人可以帮帮我吗?
答案 0 :(得分:4)
请确保将CMD
syntax与""
一起使用,而不是“”
:
CMD ["executable","param1","param2"] (exec form, this is the preferred form)