forked from CS410Assignments/CourseProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdockerfile
More file actions
27 lines (19 loc) · 725 Bytes
/
dockerfile
File metadata and controls
27 lines (19 loc) · 725 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
FROM python:3.8
#Labels as key value pair
LABEL Maintainer="sumanth4@illinois.edu"
# Any working directory can be chosen as per choice like '/' or '/home' etc
# i have chosen /usr/app/src
WORKDIR /Users/sumababu1/sarcasm_config
COPY requirements.txt requirements.txt
RUN pip3 install --upgrade pip
RUN pip3 install tensorflow
RUN pip3 install -r requirements.txt
RUN pip3 install numpy --upgrade
RUN pip3 install requests
COPY . .
#to COPY the remote file at working directory in container
COPY sarcasm_final.py ./
# Now the structure looks like this '/usr/app/src/test.py'
#CMD instruction should be used to run the software
#contained by your image, along with any arguments.
CMD [ "python", "./sarcasm_final.py"]