-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 738 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# We'll need and hence use the below base_image
# to built our own image, from Docker Hub.
FROM python
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# The working directory inside of the container.
WORKDIR /code
# Copying requirements.txt from the same directory as
# the dockerfile to the working directory of the container.
COPY ./requirements.txt /code/
# Below command will run inside of the container and will
# ensure that all the dependencies required for running this app
# will be installed inside the application of this container.
RUN pip install -r requirements.txt
# Eventually, copying all the code from the directory
# same as that of the Dockerfile to the /code folder inside
# the container.
COPY . /code