Skip to content

Commit

Permalink
Update Docker instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejkula committed Aug 17, 2017
1 parent e30bb1b commit 5121465
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ RUN echo 'export PATH=/opt/conda/bin:$PATH' > /etc/profile.d/conda.sh && \

ENV PATH /opt/conda/bin:$PATH

RUN conda install pytest jupyter
RUN conda install pytest jupyter scikit-learn

ENV PYTHONDONTWRITEBYTECODE 1

ADD . /home/lightfm/
WORKDIR /home/

RUN pip install lightfm
RUN cd lightfm && pip install -e .
2 changes: 1 addition & 1 deletion doc/home.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ On many systems it may be more convenient to try LightFM out in a Docker contain

The container should now be ready for use. You can then:

1. Run tests by running ``docker-compose run lightfm py.test -x tests/``
1. Run tests by running ``docker-compose run lightfm py.test -x lightfm/tests/``
2. Run the movielens example by running ``docker-compose run lightfm jupyter notebook examples/movielens/example.ipynb --ip=0.0.0.0``. The notebook will be accessible at port 8888 of your container's IP address.

Usage
Expand Down
8 changes: 5 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
lightfm:
build: .
volumes:
- .:/home/lightfm/
# Uncomment this to mount your local version
# of the LightFM code.
# volumes:
# - .:/home/lightfm/
ports:
- "8888:8888"
expose:
- "8888"
- "8888"

0 comments on commit 5121465

Please sign in to comment.