prefapp / formacion

4 stars 4 forks source link

Fix "Gatiño do día" doc page #135

Closed juanjosevazquezgil closed 1 year ago

juanjosevazquezgil commented 1 year ago

Motivation

Currently, the documentation for the exercise "Gatiño do día" is incorrect. The user is instructed to create a Dockfile step by step, and, at some point, is asked to type in the following command:

RUN apt-get update -y && apt-get -y install python3-pip

This command is wrong because it also needs to install the git package, which is used later to clone in the repo.

At the end of the lesson, the resulting Dockerfile is shown, this mistake is not present:

FROM ubuntu

WORKDIR /home

RUN apt-get update -y && apt-get -y install python3-pip git

RUN git clone https://github.com/prefapp/catweb.git

WORKDIR /home/catweb

RUN pip3 install -r requirements.txt

CMD ["python3", "app.py"]

Acceptance criteria