-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Use the DocTR image as the base image | ||
FROM ghcr.io/mindee/doctr:torch-py3.9.18-gpu-2024-05 | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /app | ||
|
||
# Copy the project files into the working directory | ||
COPY . /app | ||
|
||
# Install Python dependencies from requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
# Upgrade Flask to the latest version | ||
RUN pip install -U Flask | ||
|
||
# Create directories for screenshots and chroma if they don't exist | ||
RUN mkdir -p /app/screenshots /app/chroma | ||
|
||
# Expose the Flask port | ||
EXPOSE 9876 | ||
|
||
# Command to run the Flask app | ||
CMD ["flask", "--app", "app.py", "run", "--host=0.0.0.0", "--port=9876"] | ||
|