-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 625 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (17 loc) · 625 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# set base image (host OS)
FROM python:3.9
# set the working directory in the container
WORKDIR /segment_project
# copy the dependencies file to the working directory
COPY requirements.txt .
# install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# copy the content from the local directory to the working directory
COPY ./config ./config
COPY ./data ./data
COPY ./models ./models
COPY ./src ./src
# command to run on container start
# comment and uncomment either of the following lines based on whether to train or test the model
CMD [ "python", "./src/test.py" ]
# CMD [ "python", "./src/train.py" ]