-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NOISSUE - Add Dockerfile For IRIS Example (#220)
* feat(Docker): Add Dockerfile for testing Add Dockerfile for testing linear regression algorithm Signed-off-by: Rodney Osodo <[email protected]> * fix(docs): Update docker linear regression example Resolves #220 (comment) --------- Signed-off-by: Rodney Osodo <[email protected]>
- Loading branch information
1 parent
bdfc5fd
commit 742bba5
Showing
3 changed files
with
57 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ cmd/manager/img | |
dist/ | ||
results.zip | ||
*.spec | ||
*.tar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM python:3.9-slim | ||
|
||
# set the working directory in the container | ||
WORKDIR /cocos | ||
RUN mkdir /cocos/results | ||
RUN mkdir /cocos/datasets | ||
|
||
COPY ./requirements.txt /cocos/requirements.txt | ||
COPY ./lin_reg.py /cocos/lin_reg.py | ||
|
||
# install dependencies | ||
RUN pip install -r requirements.txt | ||
|
||
# command to be run when the docker container is started | ||
CMD ["python3", "/cocos/lin_reg.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters