This repository has been archived by the owner on May 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,137 additions
and
631 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM python:3.7 | ||
|
||
# Installing git | ||
RUN apt-get update -y | ||
RUN apt-get install -y git | ||
# Installing numpy and jupyterlab | ||
RUN pip install jupyterlab numpy Cython pyarrow | ||
|
||
# Installing requirements | ||
COPY ./requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
# Copying examples | ||
COPY ./examples /examples | ||
|
||
# Copying this package | ||
COPY . /package | ||
RUN pip install -e /package | ||
|
||
# Download models | ||
RUN python -c "from lc_classifier.classifier.models import HierarchicalRandomForest;HierarchicalRandomForest({}).download_model()" | ||
|
||
WORKDIR /examples | ||
EXPOSE 8888 | ||
|
||
CMD ["jupyter", "notebook", "--allow-root", "--ip", "0.0.0.0", "--NotebookApp.token=''"] |
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
Oops, something went wrong.