AAnvar commited on
Commit
2d84d46
·
verified ·
1 Parent(s): b32ba05

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ######################## WRITE YOUR DOCKERFILE SCRIPT HERE #########################
3
+
4
+ # Use the official Python base image
5
+ FROM python:3.11-slim
6
+
7
+ # Set environment variables
8
+ ENV PYTHONDONTWRITEBYTECODE=1
9
+ ENV PYTHONUNBUFFERED=1
10
+
11
+ # Set the working directory in the container
12
+ WORKDIR /app
13
+
14
+ # Copy the current directory contents into the container at /app
15
+ COPY . /app
16
+
17
+ # Install system dependencies
18
+ RUN apt-get update && apt-get install -y \
19
+ build-essential \
20
+ git \
21
+ curl \
22
+ && rm -rf /var/lib/apt/lists/*
23
+
24
+ # Install Python dependencies
25
+ RUN pip install --no-cache-dir --upgrade pip \
26
+ && pip install --no-cache-dir -r requirements.txt
27
+
28
+ # Expose the port that Gradio will run on
29
+ EXPOSE 7860
30
+
31
+ # Run the app
32
+ CMD ["python", "app.py"]