muryshev commited on
Commit
0aec9f3
1 Parent(s): d218009

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +22 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.10-slim
3
+ # Set Python to use unbuffered mode
4
+ ENV PYTHONUNBUFFERED 1
5
+ # Set the working directory in the container
6
+ RUN mkdir /var/www
7
+ ENV HOME /var/www
8
+ WORKDIR /var/www
9
+
10
+ # Copy the current directory contents into the container at /app
11
+ COPY . /var/www
12
+
13
+ RUN pip install -r requirements
14
+
15
+ # Make port 5000 available to the world outside this container
16
+ EXPOSE 7860
17
+
18
+ # Define environment variable
19
+ ENV FLASK_APP app.py
20
+
21
+ # Run app.py when the container launches
22
+ CMD flask run --host=0.0.0.0 --port=7866