prakhar1989 / docker-curriculum

:dolphin: A comprehensive tutorial on getting started with Docker!
https://docker-curriculum.com/
MIT License
5.69k stars 2.17k forks source link

docker-curriculum.com tutorial does not work #380

Open yozsoy opened 1 year ago

yozsoy commented 1 year ago

"To start, create a new blank file in our favorite text-editor and save it in the same folder as the flask app by the name of Dockerfile" this part in this page "https://docker-curriculum.com/" does not tell the folder name the dockerfile should be in. I followed the instructions exactley but it didnt work with the error message below.

Do you mean place the docker file in flask-app folder? flask-app folder already contain dockerfile so do you mean delete the dockerfile and create an empty file?

image

mayo-nesso commented 1 year ago

hi @yozsoy ! I think that just before that step you have to go to flask-app folder. (ie cd flask-app). There you will find requirements.txt.

And, yes, I deleted the existent Dockerfile in that folder to recreate a new one.

ps; Also, I had to add this line to requirements.txt

Werkzeug==2.2.2
Yufei447 commented 11 months ago

Do you mean to move Dockerfile to flask-app folder? I have this error when I did that: => ERROR [ 6/10] ADD flask-app /opt/flask-app 0.0s

mayo-nesso commented 10 months ago

mmmm, this is my Dockerfile

Screenshot 2024-01-08 at 20 31 09

And my requirements.txt

Screenshot 2024-01-08 at 20 32 24

I don't remember exactly the steps that I did, but I guess that I meant to, in the terminal, go to the flask-app folder to start building the image from there...

Screenshot 2024-01-08 at 20 36 58
Yufei447 commented 10 months ago

Thanks for your reply. But actually what I got stuck is the FoodTruck step