Bonjour
je debute sur docker.
j'ai ce simple dockerfile pour constuire une app ecrite en python

je comprends qu'on part d'une image python comme j'ai une app en python.
par contre, 2e ligne: on se place dans le répertoire /usr/src/app?

Il sort d'où ce repertoire?
je lance un conteneur avec python, comment je connais les dossiers qui existent dans mon conteneur?


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

FROM python:3.8

# set a directory for the app
WORKDIR /usr/src/app

# copy all the files to the container
COPY . .

# install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# define the port number the container should expose
EXPOSE 5000

# run the command
CMD ["python", "./app.py"]