Sébastien De Greef commited on
Commit
9546a85
1 Parent(s): dbc7d73

chore: Update Dockerfile to fix copying of source files and set permissions for start_chatbot.sh

Browse files
Files changed (3) hide show
  1. Dockerfile +5 -7
  2. src/start_chatbot.sh +2 -0
  3. start_chatbot.sh +0 -1
Dockerfile CHANGED
@@ -32,10 +32,10 @@ ENV PATH="/home/chatbot/.local/bin:${PATH}"
32
  #RUN wget -q https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda_12.4.1_550.54.15_linux.run
33
  # \ && sudo /bin/bash cuda_12.4.1_550.54.15_linux.run
34
 
35
- RUN wget -q https://developer.download.nvidia.com/compute/cudnn/9.1.1/local_installers/cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
36
- && sudo dpkg -i cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
37
- && sudo cp /var/cudnn-local-repo-ubuntu2204-9.1.1/cudnn-*-keyring.gpg /usr/share/keyrings/ \
38
- && sudo apt-get update && sudo apt-get -y install cudnn
39
 
40
  # Create a working directory
41
  WORKDIR /app
@@ -63,8 +63,6 @@ RUN --mount=target=/root/on_startup.sh,source=on_startup.sh,readwrite bash /root
63
 
64
  USER chatbot
65
 
66
- COPY --chown=chatbot src src
67
- RUN ls
68
  COPY --chown=chatbot start_chatbot.sh start_chatbot.sh
69
- RUN ls
70
  RUN chmod +x start_chatbot.sh
 
32
  #RUN wget -q https://developer.download.nvidia.com/compute/cuda/12.4.1/local_installers/cuda_12.4.1_550.54.15_linux.run
33
  # \ && sudo /bin/bash cuda_12.4.1_550.54.15_linux.run
34
 
35
+ #RUN wget -q https://developer.download.nvidia.com/compute/cudnn/9.1.1/local_installers/cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
36
+ # && sudo dpkg -i cudnn-local-repo-ubuntu2204-9.1.1_1.0-1_amd64.deb \
37
+ # && sudo cp /var/cudnn-local-repo-ubuntu2204-9.1.1/cudnn-*-keyring.gpg /usr/share/keyrings/ \
38
+ # && sudo apt-get update && sudo apt-get -y install cudnn
39
 
40
  # Create a working directory
41
  WORKDIR /app
 
63
 
64
  USER chatbot
65
 
66
+ COPY --chown=chatbot src $HOME/app
 
67
  COPY --chown=chatbot start_chatbot.sh start_chatbot.sh
 
68
  RUN chmod +x start_chatbot.sh
src/start_chatbot.sh ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ echo "#### BOT BOOT ####"
2
+ uvicorn main:app
start_chatbot.sh CHANGED
@@ -1,3 +1,2 @@
1
  echo "#### BOT BOOT ####"
2
- cd src
3
  uvicorn main:app
 
1
  echo "#### BOT BOOT ####"
 
2
  uvicorn main:app