-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (18 loc) · 718 Bytes
/
Dockerfile
File metadata and controls
18 lines (18 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# set the base image. Since we're running
# a Python application a Python base image is used
FROM python:3.8
# set a key-value label for the Docker image
LABEL maintainer="Nayanexx.py"
# copy files from the host to the container filesystem.
# For example, all the files in the current directory
# to the `/app` directory in the container
COPY . /app
# defines the working directory within the container
WORKDIR /app
# run commands within the container.
# For example, invoke a pip command
# to install dependencies defined in the requirements.txt file.
RUN pip install -r requirements.txt
# provide a command to run on container start.
# For example, start the `app.py` application.
CMD [ "python", "app.py" ]