Error response from daemon: Dockerfile parse error line 1: unknown instruction: #

后端 未结 9 2857
名媛妹妹
名媛妹妹 2021-01-17 08:07

Im new to docker and trying to learn it. Im following this tutorial: https://docs.docker.com/get-started/part2/#apppy

So I installed Docker on Windows. Created 3 fil

9条回答
  •  执笔经年
    2021-01-17 08:11

    In Google Cloud Platform in console project using nano the comand work for me
    1º-nano
    2-

    # The Dockerfile defines the image's environment
    # Import Python runtime and set up working directory
    FROM python:2.7-alpine
    WORKDIR /app
    ADD . /app
    
    # Install any necessary dependencies
    RUN pip install -r requirements.txt
    
    # Open port 80 for serving the webpage
    EXPOSE 80
    
    # Run app.py when the container launches
    CMD ["python", "app.py"]
    

    save the file...

提交回复
热议问题