jblast94 commited on
Commit
e9c0ad8
·
verified ·
1 Parent(s): 7b4921e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -2,6 +2,14 @@ FROM python:3.10-slim
2
  WORKDIR /app
3
  COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
 
 
 
5
  COPY app.py .
6
  EXPOSE 7860
7
  CMD ["python", "app.py"]
 
2
  WORKDIR /app
3
  COPY requirements.txt .
4
  RUN pip install --no-cache-dir -r requirements.txt
5
+ # --- ADD THIS NEW STEP ---
6
+ # The python:3.10-slim image is based on Debian, so we use apt-get.
7
+ RUN apt-get update && apt-get install -y git
8
+ # -------------------------
9
+
10
+ # Now the git config commands will work because 'git' is installed
11
+ RUN git config --global user.email "[email protected]"
12
+ RUN git config --global user.name "jblast94" # You mentioned this one too
13
  COPY app.py .
14
  EXPOSE 7860
15
  CMD ["python", "app.py"]