Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile 1.6 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  1. # Anaconda3 base image
  2. FROM continuumio/anaconda3
  3. # Update?, install tmux nano gcc
  4. RUN apt-get update \
  5. && apt-get install -y tmux nano gcc
  6. # Pip installs
  7. RUN pip install dvc pyarrow pause pandas_summary
  8. # add a user called ubuntu for all subsequent layers
  9. RUN adduser --disabled-password --gecos '' ubuntu \
  10. && adduser ubuntu sudo \
  11. && echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
  12. USER ubuntu
  13. WORKDIR /home/ubuntu
  14. ADD .bashrc /home/ubuntu/
  15. # Install j_utils
  16. ADD https://api.github.com/repos/jmhsi/j_utils/git/refs/heads/master j_utils_version.json
  17. RUN git clone https://github.com/jmhsi/j_utils.git \
  18. && cd j_utils \
  19. && pip install --user -e .
  20. # Run below uses github api to make sure docker build doesn't use cached version of git cloned repo
  21. ADD https://api.github.com/repos/jmhsi/lendingclub/git/refs/heads/master lendingclub_version.json
  22. # Clone the lendingclub repo and cythonize inside csv_preparation, move cython to csv_prep dir
  23. RUN git clone https://github.com/jmhsi/lendingclub.git \
  24. #RUN git clone git@github.com:jmhsi/lendingclub.git \
  25. && cd lendingclub \
  26. && git pull \
  27. && pip install --user -e . \
  28. && cd lendingclub/csv_preparation \
  29. && python setup.py build_ext \
  30. && echo $(pwd) \
  31. && echo $(ls build/lib.linux-x86_64-3.7/lendingclub/csv_preparation) \
  32. && mv build/lib.linux-x86_64-3.7/lendingclub/csv_preparation/rem_to_be_paid.cpython-37m-x86_64-linux-gnu.so .
  33. # Expose port for jupyter notebook
  34. EXPOSE 3224
  35. #CMD ["jupyter", "notebook", "--no-browser","--NotebookApp.token=''","--NotebookApp.password=''"]
  36. #CMD ['/bin/bash', "cd]
  37. #ADD hello.py /home/ubuntu/
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...