peace2024 commited on
Commit
9fe59b0
·
1 Parent(s): 7da65d8

docker update

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -5,10 +5,10 @@ FROM python:3.10-slim
5
  WORKDIR /app
6
 
7
  # Set environment variables for better performance
8
- ENV PYTHONUNBUFFERED=1
9
- ENV PYTHONDONTWRITEBYTECODE=1
10
- ENV DEBIAN_FRONTEND=noninteractive
11
-
12
  # Install system-level dependencies
13
  RUN apt-get update && \
14
  apt-get install -y \
@@ -22,8 +22,8 @@ RUN apt-get update && \
22
 
23
  # Configure git to avoid permission issues during HF build
24
  RUN git config --global --add safe.directory /app && \
25
- git config --global user.email "noreply@huggingface.co" && \
26
- git config --global user.name "Hugging Face"
27
 
28
  # Copy requirements first to leverage Docker layer caching
29
  COPY requirements-hf.txt .
 
5
  WORKDIR /app
6
 
7
  # Set environment variables for better performance
8
+ ENV PYTHONUNBUFFERED=1 \
9
+ PYTHONDONTWRITEBYTECODE=1 \
10
+ DEBIAN_FRONTEND=noninteractive \
11
+ HOME=/root
12
  # Install system-level dependencies
13
  RUN apt-get update && \
14
  apt-get install -y \
 
22
 
23
  # Configure git to avoid permission issues during HF build
24
  RUN git config --global --add safe.directory /app && \
25
+ git config --global user.email "peace2024@users.noreply.huggingface.co" && \
26
+ git config --global user.name "peace2024"
27
 
28
  # Copy requirements first to leverage Docker layer caching
29
  COPY requirements-hf.txt .