davidepanza commited on
Commit
423104d
·
verified ·
1 Parent(s): a39157f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -4
Dockerfile CHANGED
@@ -1,6 +1,5 @@
1
  FROM python:3.11-slim
2
 
3
- # Set up user for HF Spaces (they require non-root user)
4
  RUN useradd -m -u 1000 user
5
  USER user
6
  ENV HOME=/home/user \
@@ -8,17 +7,14 @@ ENV HOME=/home/user \
8
 
9
  WORKDIR $HOME/app
10
 
11
- # Copy files with proper ownership
12
  COPY --chown=user:user src/ ./src
13
  COPY --chown=user:user requirements.txt .
14
  COPY --chown=user:user images/ ./images/
15
  COPY --chown=user:user .streamlit/ ./.streamlit/
16
 
17
- # Set environment variables for HF Spaces
18
  ENV NLTK_DATA=$HOME/nltk_data
19
  ENV ANONYMIZED_TELEMETRY=False
20
 
21
- # Install dependencies
22
  RUN pip install --no-cache-dir --user -r requirements.txt
23
 
24
  # Create NLTK data directory in user home
 
1
  FROM python:3.11-slim
2
 
 
3
  RUN useradd -m -u 1000 user
4
  USER user
5
  ENV HOME=/home/user \
 
7
 
8
  WORKDIR $HOME/app
9
 
 
10
  COPY --chown=user:user src/ ./src
11
  COPY --chown=user:user requirements.txt .
12
  COPY --chown=user:user images/ ./images/
13
  COPY --chown=user:user .streamlit/ ./.streamlit/
14
 
 
15
  ENV NLTK_DATA=$HOME/nltk_data
16
  ENV ANONYMIZED_TELEMETRY=False
17
 
 
18
  RUN pip install --no-cache-dir --user -r requirements.txt
19
 
20
  # Create NLTK data directory in user home