azr43l commited on
Commit
ea2326d
1 Parent(s): dfe0e9d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ROM python:3.9-slim
2
+
3
+ # Install necessary packages
4
+ RUN apt-get update && \
5
+ apt-get install -y --no-install-recommends \
6
+ build-essential \
7
+ && \
8
+ apt-get clean && \
9
+ rm -rf /var/lib/apt/lists/*
10
+
11
+ # Install Python dependencies
12
+ RUN pip install Flask requests
13
+
14
+ # Copy the app.py file to the container
15
+ COPY app.py .
16
+
17
+ # Expose port 80 for the default website
18
+ EXPOSE 80
19
+
20
+ # Set the entrypoint to start the application
21
+ #CMD ["python", "app.py"]
22
+ ENTRYPOINT ["python", "app.py"]