Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Add Dockerfile - #104

Open
sedflix wants to merge 1 commit into
facebookresearch:mainfrom
sedflix:master
Open

Add Dockerfile#104
sedflix wants to merge 1 commit into
facebookresearch:mainfrom
sedflix:master

Conversation

@sedflix

@sedflix sedflix commented Jan 22, 2019

Copy link
Copy Markdown

Added Dockerfile for GPU. It uses pytorch 0.4.1.

@facebook-github-bot

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@garawalid garawalid left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you forget to copy the project to the docker image.
Also, you need to use the Sort multi-line arguments. See Best practices for writing Dockerfiles

Comment thread Dockerfile

LABEL maintainer "Siddharth Yadav <sedflix@gmail.com>"

RUN apt-get update && conda install -y jupyter scipy matplotlib scikit-learn faiss-gpu -c pytorch && conda clean --packages --yes

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forget to clean the Advanced Package Tool.
You can add apt-get clean && rm -rf /var/lib/apt/lists/*

Comment thread Dockerfile

RUN apt-get update && conda install -y jupyter scipy matplotlib scikit-learn faiss-gpu -c pytorch && conda clean --packages --yes

CMD ["bash"]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is better to start Jupyter by default, so users can see the demo notebook demo.ipynb.

Comment thread .dockerignore
@@ -0,0 +1,2 @@
data
dumped

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please explain why you are using .dockerignore

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants