MiklX commited on
Commit
ef100aa
·
1 Parent(s): 5b42426

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.8-slim-buster
3
+ # Set the working directory in the container to /app
4
+ WORKDIR /app
5
+ # Copy the current directory contents into the container at /app
6
+ ADD . /app
7
+ # Install any needed packages specified in requirements.txt
8
+ RUN pip install --no-cache-dir opencv-python-headless pytesseract flask
9
+ # Make port 5000 available to the world outside this container
10
+ EXPOSE 5000
11
+ # Run app.py when the container launches
12
+ CMD ["python", "app.py"]