MiklX commited on
Commit
39555fe
·
1 Parent(s): 00d1ad6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -9
Dockerfile CHANGED
@@ -2,16 +2,13 @@
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 apt-get update && apt-get install -y
9
- tesseract-ocr
10
- libtesseract-dev
11
- && apt-get clean
12
- && apt-get autoremove
13
- && rm -rf /var/lib/apt/lists/*
14
- RUN pip install --no-cache-dir opencv-python-headless pytesseract flask
15
-
16
  # Run app.py when the container launches
17
  CMD ["python", "app.py"]
 
2
  FROM python:3.8-slim-buster
3
  # Set the working directory in the container to /app
4
  WORKDIR /app
5
+ # Add 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 flask easyocr pillow requests
9
+ # Make port 7860 available to the world outside this container
10
+ EXPOSE 7860
11
+ # Define environment variable
12
+ ENV NAME World
 
 
 
13
  # Run app.py when the container launches
14
  CMD ["python", "app.py"]