Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -6
Dockerfile
CHANGED
|
@@ -7,16 +7,20 @@ WORKDIR /app
|
|
| 7 |
# Install git
|
| 8 |
RUN apt-get update && apt-get install -y git
|
| 9 |
|
| 10 |
-
#
|
| 11 |
-
|
| 12 |
-
RUN --mount=type=secret,id=github_token,dst=/github_token \
|
| 13 |
-
git config --global url."https://x-access-token:$(cat /github_token)@github.com/".insteadOf "https://github.com/"
|
| 14 |
|
| 15 |
# Clone your private repository
|
| 16 |
-
RUN
|
| 17 |
|
| 18 |
# Install dependencies
|
| 19 |
RUN pip install -r requirements.txt
|
| 20 |
|
| 21 |
# Copy any other necessary files
|
| 22 |
-
# COPY . .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Install git
|
| 8 |
RUN apt-get update && apt-get install -y git
|
| 9 |
|
| 10 |
+
# Access the secret directly from the environment variable
|
| 11 |
+
RUN git config --global url."https://x-access-token:${GITHUB_TOKEN}@github.com/".insteadOf "https://github.com/"
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Clone your private repository
|
| 14 |
+
RUN git clone https://github.com/leoncool23/sci_xg_classify.git .
|
| 15 |
|
| 16 |
# Install dependencies
|
| 17 |
RUN pip install -r requirements.txt
|
| 18 |
|
| 19 |
# Copy any other necessary files
|
| 20 |
+
# COPY . .
|
| 21 |
+
|
| 22 |
+
# Expose the port your app runs on
|
| 23 |
+
EXPOSE 8080
|
| 24 |
+
|
| 25 |
+
# Command to run your app
|
| 26 |
+
CMD ["python", "app.py"]
|