Jones0 commited on
Commit
ab121b2
·
verified ·
1 Parent(s): 44a2eac

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12.9-slim-bullseye
2
+
3
+ WORKDIR /app
4
+
5
+ ENV PYTHONDONTWRITEBYTECODE=1 \
6
+ PYTHONUNBUFFERED=1 \
7
+ LANG=C.UTF-8 \
8
+ LC_ALL=C.UTF-8
9
+
10
+ RUN apt-get update \
11
+ && apt-get install -y --no-install-recommends \
12
+ curl \
13
+ build-essential \
14
+ nodejs \
15
+ npm \
16
+ && rm -rf /var/lib/apt/lists/*
17
+
18
+ COPY . .
19
+
20
+ RUN pip install --no-cache-dir -r requirements.txt
21
+
22
+ EXPOSE 7860
23
+
24
+ CMD ["python", "app.py"]
25
+
26
+