-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (15 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# This is a Dockerfile used to build the Image which it'll be used to create a Containers.
# This imgae is created for the Python application, therefore it pull the Python depentencies for the Imgae.
# This is the latest version for Python depentence.
FROM python:latest
# Some Label for the Docker Image.
LABEL multi.authors="Nicola Ricciardi" multi.version="1.0" multi.description="Docker container used to run a simple Python APP, with Terminal User Input."
# This is the directory where all the following commands will be executed (COPY, RUN, CMD will be executed in the directory WORKDIR specified)
WORKDIR /Docker_Directory
# This command define to copy all the file located in the current directory (" . ") which in the Dockerfile is created
# In this case is in the Project APP Python; and copy all files into the specified directory (copy all file in the sub-directory "./Image_DIrectory").
# The copy will be placed in the /Docker_Directory/Image_Directory directory.
# Equivalent command -> COPY Local_Path_Where_Dockerfile_Is_Placed /Docker_Directory/Image_Direcotry
COPY . ./Image_Directory
# This command define to run the "main.py" file located under the sub-directory definetd
CMD ["python","Image_Directory/Source_Code/main.py"]