Speedofmastery commited on
Commit
12b6328
·
1 Parent(s): 3c9a588

Auto-commit: Dockerfile updated

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -18
Dockerfile CHANGED
@@ -1,27 +1,14 @@
1
- # Use Ubuntu-based Python image for better Linux compatibility
2
- FROM python:3.11-slim
3
-
4
- # Set environment variables
5
- ENV PYTHONUNBUFFERED=1
6
- ENV DEBIAN_FRONTEND=noninteractive
7
-
8
- # Install system dependencies
9
- RUN apt-get update && apt-get install -y \
10
- git \
11
- curl \
12
- wget \
13
- build-essential \
14
- sqlite3 \
15
- && rm -rf /var/lib/apt/lists/*
16
-
17
- # Create user for security
18
  RUN useradd -m -u 1000 user
19
  USER user
20
  ENV HOME=/home/user \
21
  PATH=/home/user/.local/bin:$PATH
22
 
23
  # Set working directory
24
- WORKDIR $HOME/app
25
 
26
  # Copy requirements first for better caching
27
  COPY --chown=user requirements.txt .
 
1
+ # HuggingFace optimized Dockerfile
2
+ FROM python:3.9
3
+
4
+ # Create user
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  RUN useradd -m -u 1000 user
6
  USER user
7
  ENV HOME=/home/user \
8
  PATH=/home/user/.local/bin:$PATH
9
 
10
  # Set working directory
11
+ WORKDIR /app
12
 
13
  # Copy requirements first for better caching
14
  COPY --chown=user requirements.txt .