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.9 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
  1. FROM nvidia/cuda:11.2.2-runtime-ubuntu20.04 as base_container
  2. ENV INSTALL_PATH /workspace
  3. ENV VENV_NAME venv
  4. ENV PATH=${INSTALL_PATH}/${VENV_NAME}/bin:${PATH}
  5. ARG SG_VERSION="3.0.7"
  6. ARG PIP_FLAGS="--no-deps"
  7. ARG DEBIAN_FRONTEND=noninteractive
  8. ARG PYTHON_VERSION="3.8"
  9. ARG PIP_CONFIG_FILE_HOST="./.config/pip/pip.conf"
  10. # Preparing system requirements
  11. RUN apt update && apt install -y --no-install-recommends software-properties-common && \
  12. add-apt-repository ppa:deadsnakes/ppa && apt update && apt install -y --no-install-recommends \
  13. curl \
  14. less \
  15. gzip \
  16. sudo \
  17. wget \
  18. apt-transport-https \
  19. unzip \
  20. jq \
  21. git \
  22. software-properties-common \
  23. ffmpeg \
  24. libsm6 \
  25. libxext6 \
  26. python${PYTHON_VERSION} \
  27. python${PYTHON_VERSION}-venv \
  28. python-dev \
  29. libxml2-dev \
  30. libxslt-dev \
  31. python3-dev \
  32. gcc \
  33. vim \
  34. nano \
  35. python3-pip && apt clean && rm -rf /var/lib/apt/lists/*
  36. # working directory
  37. WORKDIR ${INSTALL_PATH}
  38. # creating virtual environment (to allow multi stage buikd in the future)
  39. RUN python${PYTHON_VERSION} -m venv --system-site-packages --copies ${INSTALL_PATH}/${VENV_NAME}
  40. RUN . ${INSTALL_PATH}/${VENV_NAME}/bin/activate
  41. RUN pip install --no-cache-dir --upgrade git+https://github.com/Deci-AI/super-gradients@master
  42. RUN pip uninstall super-gradients -y
  43. ARG CACHEBUST=1
  44. RUN pip install --no-cache-dir --upgrade git+https://github.com/Deci-AI/super-gradients@eugene/debug
  45. ENV FILE_LOG_LEVEL DEBUG
  46. ENV CONSOLE_LOG_LEVEL DEBUG
  47. ENV LOG_LEVEL DEBUG
  48. # we should do multistage build in the future
  49. # FROM nvidia/cuda:11.2.2-runtime-ubuntu20.04 as lean_image #todo
  50. #ENV INSTALL_PATH /workspace
  51. #ENV VENV_NAME venv
  52. #ENV PATH=${INSTALL_PATH}/${VENV_NAME}/bin:${PATH}
  53. #WORKDIR ${INSTALL_PATH}
  54. #COPY --from=base_container $INSTALL_PATH $INSTALL_PATH #todo
  55. # Coping the content to deci-algo to be available in the container
  56. WORKDIR ${INSTALL_PATH}
Tip!

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

Comments

Loading...