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 782 B

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
  1. FROM nvidia/cuda:11.2.0-cudnn8-devel-ubuntu18.04
  2. RUN apt-get update && \
  3. apt-get install -y software-properties-common wget git && \
  4. add-apt-repository ppa:deadsnakes/ppa && \
  5. apt update
  6. RUN apt-get install -y --no-install-recommends \
  7. python3.7 \
  8. python3.7-dev
  9. RUN wget https://bootstrap.pypa.io/get-pip.py && \
  10. python3.7 get-pip.py && \
  11. ln -s /usr/bin/python3.7 /usr/local/bin/python3
  12. RUN apt-get install -y zsh && \
  13. chsh -s /bin/zsh && \
  14. zsh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  15. ADD . /app
  16. WORKDIR /app
  17. RUN apt-get install -y $(awk '{print $1}' docker/apt.packages)
  18. RUN pip install -r ./requirements.txt
  19. EXPOSE 8888
  20. CMD exec /bin/zsh -c "trap : TERM INT; sleep infinity & wait"
Tip!

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

Comments

Loading...