peterpeter8585 commited on
Commit
3f9066c
·
verified ·
1 Parent(s): 699c8c4

Create Dockerfile

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