Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# syntax=docker/dockerfile:1.4
|
| 2 |
+
|
| 3 |
+
FROM python:3.9-slim
|
| 4 |
+
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Install git
|
| 8 |
+
RUN apt-get update && apt-get install -y git
|
| 9 |
+
|
| 10 |
+
# Set up git with the provided token
|
| 11 |
+
ARG GITHUB_TOKEN
|
| 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 --mount=type=secret,id=github_token git clone https://github.com/leoncool23/sci_xg_classify.git .
|
| 17 |
+
|
| 18 |
+
# Install dependencies
|
| 19 |
+
RUN pip install -r requirements.txt
|
| 20 |
+
|
| 21 |
+
# Copy any other necessary files
|
| 22 |
+
# COPY . .
|