SmokeyBandit commited on
Commit
1b4bab9
·
verified ·
1 Parent(s): e960060

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -4,15 +4,19 @@ FROM python:3.9-slim
4
  ENV TRANSFORMERS_CACHE=/tmp/hf
5
  ENV HF_HOME=/tmp/hf
6
 
 
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
- build-essential && \
9
- rm -rf /var/lib/apt/lists/*
10
 
11
  WORKDIR /app
12
 
 
13
  COPY requirements.txt requirements.txt
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
16
  COPY main.py main.py
 
17
 
18
  CMD ["python", "main.py"]
 
4
  ENV TRANSFORMERS_CACHE=/tmp/hf
5
  ENV HF_HOME=/tmp/hf
6
 
7
+ # Install build essentials and clean up
8
  RUN apt-get update && apt-get install -y --no-install-recommends \
9
+ build-essential \
10
+ && rm -rf /var/lib/apt/lists/*
11
 
12
  WORKDIR /app
13
 
14
+ # Install Python dependencies
15
  COPY requirements.txt requirements.txt
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Copy application files
19
  COPY main.py main.py
20
+ COPY app.py app.py
21
 
22
  CMD ["python", "main.py"]