Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
-
#
|
20 |
-
|
|
|
|
|
|
|
|
|
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"]
|