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