rida saghir commited on
Commit
90516eb
·
1 Parent(s): 75eac89

Modified dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -12
Dockerfile CHANGED
@@ -14,20 +14,14 @@ ARG REPO_URL=https://$GITLAB_DEPLOYTOKEN_USERNAME:$GITLAB_DEPLOYTOKEN_PASSWORD@g
14
  RUN git clone ${REPO_URL} /lts_app
15
 
16
  # Set the working directory
17
- WORKDIR /gradio_app
18
 
 
19
  RUN chmod 777 /lts_app
 
20
  RUN mkdir /demo
21
  RUN chmod 777 /demo
22
 
23
- # Copy the current directory contents into the container
24
- COPY . /gradio_app
25
- ADD requirements.txt /gradio_app/requirements.txt
26
-
27
-
28
- # Copy the Linux version of frpc into the container
29
- #COPY frpc_linux_aarch64_v0.2 /usr/local/lib/python3.9/site-packages/gradio/frpc_linux_aarch64_v0.2
30
-
31
  # Install dependencies
32
  RUN pip install -r requirements.txt
33
 
@@ -39,8 +33,7 @@ RUN useradd -m -u 1000 user
39
  USER user
40
 
41
  # Set the working directory to the user's home directory
42
- WORKDIR $HOME/app
43
-
44
 
45
  # Make port available to the world outside this container
46
  EXPOSE 7860/tcp
@@ -49,7 +42,7 @@ EXPOSE 7860/tcp
49
  ENV NAME Acoustic
50
 
51
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
52
- COPY --chown=user . $HOME/app
53
 
54
  # add directory /lts_app to the save list so that it is possible to get branch, hash, tag
55
  RUN git config --global --add safe.directory /lts_app
 
14
  RUN git clone ${REPO_URL} /lts_app
15
 
16
  # Set the working directory
17
+ WORKDIR /lts_app
18
 
19
+ RUN git checkout main
20
  RUN chmod 777 /lts_app
21
+
22
  RUN mkdir /demo
23
  RUN chmod 777 /demo
24
 
 
 
 
 
 
 
 
 
25
  # Install dependencies
26
  RUN pip install -r requirements.txt
27
 
 
33
  USER user
34
 
35
  # Set the working directory to the user's home directory
36
+ WORKDIR $HOME/lts_app
 
37
 
38
  # Make port available to the world outside this container
39
  EXPOSE 7860/tcp
 
42
  ENV NAME Acoustic
43
 
44
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
45
+ COPY --chown=user . $HOME/lts_app
46
 
47
  # add directory /lts_app to the save list so that it is possible to get branch, hash, tag
48
  RUN git config --global --add safe.directory /lts_app