danicor commited on
Commit
a5f3f8b
·
verified ·
1 Parent(s): 3a88ebe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -7
Dockerfile CHANGED
@@ -1,18 +1,15 @@
1
- FROM nvidia/cuda:12.1-base-ubuntu22.04
2
 
3
  # Set environment variables
4
  ENV PYTHONUNBUFFERED=1
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  ENV HF_HOME=/app/huggingface
7
  ENV TRANSFORMERS_CACHE=/app/huggingface
 
 
8
 
9
  # Install system dependencies
10
  RUN apt-get update && apt-get install -y \
11
- python3 \
12
- python3-pip \
13
- python3-venv \
14
- git \
15
- wget \
16
  curl \
17
  && rm -rf /var/lib/apt/lists/*
18
 
@@ -21,7 +18,7 @@ WORKDIR /app
21
 
22
  # Copy requirements and install Python dependencies
23
  COPY requirements.txt .
24
- RUN pip3 install --no-cache-dir -r requirements.txt
25
 
26
  # Copy application code
27
  COPY . .
 
1
+ FROM python:3.11-slim
2
 
3
  # Set environment variables
4
  ENV PYTHONUNBUFFERED=1
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  ENV HF_HOME=/app/huggingface
7
  ENV TRANSFORMERS_CACHE=/app/huggingface
8
+ ENV PORT=7860
9
+ ENV HOST=0.0.0.0
10
 
11
  # Install system dependencies
12
  RUN apt-get update && apt-get install -y \
 
 
 
 
 
13
  curl \
14
  && rm -rf /var/lib/apt/lists/*
15
 
 
18
 
19
  # Copy requirements and install Python dependencies
20
  COPY requirements.txt .
21
+ RUN pip install --no-cache-dir -r requirements.txt
22
 
23
  # Copy application code
24
  COPY . .