-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·36 lines (21 loc) · 891 Bytes
/
Dockerfile
File metadata and controls
executable file
·36 lines (21 loc) · 891 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
25
26
27
28
29
30
31
32
33
34
35
36
# specify the image you want to use build docker image
FROM python:3.7
# Maintainer name to let people know who made this image.
MAINTAINER Kartik <kartik@gmail.com>
#apt is the ubuntu command line tool for advanced packaging tool(APT) for sw upgrade '''
RUN apt update && \
apt install -y netcat-openbsd
# update pip
RUN pip install --upgrade pip
# set the env variable to tell where the app will be installed inside the docker
ENV INSTALL_PATH /home/App
RUN mkdir -p $INSTALL_PATH
#this sets the contaext of where commands will be ran in and is documented
WORKDIR $INSTALL_PATH
# Copy in the application code from your work station at the current directory
# over to the working directory.
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY . .
RUN chmod +x /home/App/docker-entrypoint.sh
CMD ["/bin/bash", "/home/App/docker-entrypoint.sh"]