lukiod commited on
Commit
4d6bb3d
·
verified ·
1 Parent(s): c0427e4

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +36 -0
Dockerfile ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official lightweight Python image.
2
+ FROM python:3.10-slim
3
+
4
+ # Set working dir
5
+ WORKDIR /backend
6
+
7
+
8
+ RUN apt-get update && apt-get install -y \
9
+ libgl1 \
10
+ libglib2.0-0 \
11
+ libsm6 \
12
+ libxrender1 \
13
+ libxext6 \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+
17
+
18
+
19
+
20
+ # Copy requirements and install
21
+ COPY requirements.txt .
22
+ RUN pip install -r requirements.txt
23
+
24
+ # Copy your application code
25
+ COPY . .
26
+
27
+ # Expose the port your app listens on
28
+
29
+ ENV PORT=8080
30
+ EXPOSE 8080
31
+ ENV NAME=World
32
+
33
+
34
+ # Run app.py when the container launches
35
+
36
+ CMD ["python3","app.py"]