Update Dockerfile
Browse files- 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 |
-
#
|
6 |
ADD . /app
|
7 |
# Install any needed packages specified in requirements.txt
|
8 |
-
RUN
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
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"]
|