leonsimon23 commited on
Commit
2923e05
·
verified ·
1 Parent(s): eaf1a7c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -1,21 +1,19 @@
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
- # Clone your private repository using the GITHUB_TOKEN environment variable
11
- RUN git clone https://x-access-token:${GITHUB_TOKEN}@github.com/leoncool23/sci_xg_classify.git .
 
 
 
12
 
13
  # Install dependencies
14
  RUN pip install -r requirements.txt
15
 
16
- # Copy any other necessary files
17
- # COPY . .
18
-
19
  # Expose the port your app runs on
20
  EXPOSE 8080
21
 
 
1
  # syntax=docker/dockerfile:1.4
 
2
  FROM python:3.9-slim
 
3
  WORKDIR /app
4
 
5
  # Install git
6
  RUN apt-get update && apt-get install -y git
7
 
8
+ # Use build argument for GitHub token
9
+ ARG GITHUB_TOKEN
10
+
11
+ # Clone repository using GitHub token
12
+ RUN git clone https://${GITHUB_TOKEN}@github.com/leoncool23/sci_xg_classify.git .
13
 
14
  # Install dependencies
15
  RUN pip install -r requirements.txt
16
 
 
 
 
17
  # Expose the port your app runs on
18
  EXPOSE 8080
19