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 intofacebookresearch:mainfrom
sedflix:master
Open

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

Conversation

@sedflix
Copy link

@sedflix sedflix commented Jan 22, 2019

Added Dockerfile for GPU. It uses pytorch 0.4.1.

@facebook-github-bot
Copy link

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

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

Copy link

@garawalid garawalid left a comment

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


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

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/*


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

CMD ["bash"]

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.

@@ -0,0 +1,2 @@
data
dumped

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