E-slam commited on
Commit
8149618
·
verified ·
1 Parent(s): bf5abba

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -16,8 +16,12 @@ RUN chown -R appuser:appuser /code
16
  # Switch to the new user
17
  USER appuser
18
 
19
- # Copy the rest of the application code
20
- COPY . .
 
 
 
 
21
 
22
  # Set the default command
23
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
16
  # Switch to the new user
17
  USER appuser
18
 
19
+ # Clone the repository during the build process
20
+ ARG GH_TOKEN
21
+ RUN git clone https://${GH_TOKEN}@github.com/Eslam-Magdy-1297/ESearch_FletV01.git /code/ESearch_FletV01
22
+
23
+ # Set the working directory to the cloned repository
24
+ WORKDIR /code/ESearch_FletV01
25
 
26
  # Set the default command
27
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]