-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (26 loc) · 906 Bytes
/
Dockerfile
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
# set base image (host OS)
FROM python:3.9
MAINTAINER MaiTrang<[email protected]>
# set the working directory in the container
WORKDIR app
# copy the requirements file to the working directory
COPY requirements.txt .
# install requirements
RUN pip install -r requirements.txt
# create src directory & copy the content of the local src directory to it
RUN mkdir -p app/src
COPY src/ app/src
# create model directory & copy the content of the local src directory to it
RUN mkdir -p app/models
COPY models/ app/models
# create data directory & copy the content of the local src directory to it
RUN mkdir -p app/data
COPY dataset/ app/data
# copy the content of the local src directory to the working directory
#COPY src/ .
# copy datasets & model to the working directory
#COPY model/ .
#COPY dataset/ .
# command to run on container start
WORKDIR app/src
CMD ["python", "server.py"]