Sébastien De Greef commited on
Commit
39c827a
1 Parent(s): 16a35d5

chore: Update startup scripts and add main.py

Browse files
Files changed (3) hide show
  1. Dockerfile +2 -2
  2. on_startup.sh +7 -1
  3. src/main.py +1 -1
Dockerfile CHANGED
@@ -45,6 +45,6 @@ USER root
45
  RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite bash /root/on_startup.sh
46
  USER chatbot
47
 
48
- COPY --chown=chatbot . $HOME/app
49
 
50
- RUN chmod +x start_chatbot.sh
 
45
  RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite bash /root/on_startup.sh
46
  USER chatbot
47
 
48
+ COPY --chown=chatbot src $HOME/src
49
 
50
+ RUN chmod +x src/start_chatbot.sh
on_startup.sh CHANGED
@@ -1 +1,7 @@
1
- echo "#### BOT ROOT INSTALL ####"
 
 
 
 
 
 
 
1
+ echo "#### BOT ROOT INSTALL ####"
2
+
3
+ wget https://developer.download.nvidia.com/compute/cudnn/9.1.1/local_installers/cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb
4
+ sudo dpkg -i cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb
5
+ sudo cp /var/cudnn-local-repo-ubuntu2204-9.1.1/cudnn-*-keyring.gpg /usr/share/keyrings/
6
+ sudo apt-get update
7
+ sudo apt-get -y install cuda cudnn
src/main.py CHANGED
@@ -1 +1 @@
1
- print("Started Bot...")
 
1
+ print("Started Bot...")