vinay0123 commited on
Commit
20d9107
·
verified ·
1 Parent(s): 9ff4204

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ WORKDIR /app
7
+
8
+ COPY requirements.txt /app/
9
+ COPY . /app
10
+
11
+ RUN apt-get update && apt-get install -y gcc git \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ EXPOSE 7860
17
+
18
+ CMD ["python", "app.py"]
19
+