samarth-ht commited on
Commit
089c702
·
1 Parent(s): 1910dcc

fix: update Dockerfile to install necessary libraries and clean up temporary files

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -6
Dockerfile CHANGED
@@ -12,6 +12,11 @@ LABEL description="Scraibe is a tool for automatic speech recognition and speake
12
  speech recognition and speaker diarization."
13
  LABEL url="https://github.com/JSchmie/ScrAIbe"
14
 
 
 
 
 
 
15
  # Set up a new user named "hyathi" with user ID 1001
16
  # Set up a new user named "hyathi" with user ID 1000
17
  RUN useradd -m -u 1000 hyathi
@@ -20,7 +25,7 @@ RUN useradd -m -u 1000 hyathi
20
  RUN apt update -y && apt install -y sudo
21
 
22
  # Allow the user to run apt commands without a password prompt by modifying sudoers file
23
- RUN echo "hyathi ALL=(ALL) NOPASSWD: /usr/bin/apt, /bin/rm" >> /etc/sudoers
24
 
25
  # Switch to the new user
26
  USER hyathi
@@ -32,6 +37,7 @@ ENV HOME=/home/hyathi \
32
  # Install dependencies (using sudo for apt commands)
33
 
34
 
 
35
  # Install dependencies
36
  WORKDIR $HOME/app
37
 
@@ -47,11 +53,10 @@ COPY README.md /app/README.md
47
  COPY scraibe /app/scraibe
48
 
49
  #Installing all necessary dependencies and running the application with a personalised Hugging-Face-Token
50
- RUN sudo apt update -y && sudo apt upgrade -y && \
51
- sudo apt install -y libsm6 libxrender1 libfontconfig1 && \
52
- sudo apt clean && \
53
- sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
54
-
55
 
56
  RUN conda update --all && \
57
  # conda install -y pip ffmpeg && \
 
12
  speech recognition and speaker diarization."
13
  LABEL url="https://github.com/JSchmie/ScrAIbe"
14
 
15
+ RUN apt update -y && sudo apt upgrade -y && \
16
+ apt install -y libsm6 libxrender1 libfontconfig1 && \
17
+ apt clean && \
18
+ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
19
+
20
  # Set up a new user named "hyathi" with user ID 1001
21
  # Set up a new user named "hyathi" with user ID 1000
22
  RUN useradd -m -u 1000 hyathi
 
25
  RUN apt update -y && apt install -y sudo
26
 
27
  # Allow the user to run apt commands without a password prompt by modifying sudoers file
28
+ # RUN echo "hyathi ALL=(ALL) NOPASSWD: /usr/bin/apt" >> /etc/sudoers
29
 
30
  # Switch to the new user
31
  USER hyathi
 
37
  # Install dependencies (using sudo for apt commands)
38
 
39
 
40
+
41
  # Install dependencies
42
  WORKDIR $HOME/app
43
 
 
53
  COPY scraibe /app/scraibe
54
 
55
  #Installing all necessary dependencies and running the application with a personalised Hugging-Face-Token
56
+ # RUN apt update -y && apt upgrade -y && \
57
+ # apt install -y libsm6 libxrender1 libfontconfig1 && \
58
+ # apt clean && \
59
+ # rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 
60
 
61
  RUN conda update --all && \
62
  # conda install -y pip ffmpeg && \