-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (39 loc) · 1.62 KB
/
Copy pathDockerfile
File metadata and controls
46 lines (39 loc) · 1.62 KB
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
FROM nvidia/cuda:12.2.2-runtime-ubuntu22.04
LABEL maintainer="Nimbix, Inc." \
license="BSD"
# Update SERIAL_NUMBER to force rebuild of all layers (don't use cached layers)
ARG SERIAL_NUMBER="20241002.1000"
ENV SERIAL_NUMBER=${SERIAL_NUMBER}
# Add Jarvice Desktop
ARG BRANCH=master
RUN apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install ca-certificates curl --no-install-recommends && \
curl -H 'Cache-Control: no-cache' \
https://raw.githubusercontent.com/nimbix/jarvice-desktop/${BRANCH}/install-nimbix.sh \
| bash -s -- --jarvice-desktop-branch ${BRANCH}
# Install the rest of the packages
COPY buildPython.sh /tmp/buildPython.sh
RUN /tmp/buildPython.sh
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
cmake \
cudnn \
curl \
gcc \
git \
intel-mkl \
libssl-dev \
ninja-build
ARG TENSOR_VERSION=1
COPY requirements.txt /tmp/requirements.txt
RUN python3.12 -m pip install "tensorflow[and-cuda]==${TENSOR_VERSION}" --no-cache-dir
RUN python3.12 -m pip install -r /tmp/requirements.txt --no-cache-dir
RUN python3.12 -m pip install jupyter --no-cache-dir
# Remove the URL to reset the url used in the AppDef
RUN rm /etc/NAE/url.txt
COPY /scripts /usr/local/scripts
# Add NAE Directory
COPY NAE/AppDef.json /etc/NAE/AppDef.json
COPY NAE/screenshot.png /etc/NAE/screenshot.png
COPY NAE/license.txt /etc/NAE/license.txt
RUN curl --fail -X POST -d @/etc/NAE/AppDef.json https://cloud.nimbix.net/api/jarvice/validate
RUN mkdir -p /etc/NAE && /usr/bin/bash -c "touch /etc/NAE/{screenshot.png,screenshot.txt,license.txt,swlicense.txt,AppDef.json}"