-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 738 Bytes
/
Copy pathDockerfile
File metadata and controls
25 lines (18 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Use the official Microsoft Playwright image (Browsers are pre-installed!)
FROM mcr.microsoft.com/playwright/python:v1.58.0-jammy
# Set the working directory inside the container
WORKDIR /app
# Copy your requirements file first to leverage Docker caching
COPY requirements.txt .
# Install local OCR runtime for pytesseract.
RUN apt-get update \
&& apt-get install -y --no-install-recommends tesseract-ocr \
&& rm -rf /var/lib/apt/lists/*
# Install your Python packages
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of your application code
COPY . .
# Expose the port Railway uses
EXPOSE 8080
# Start the FastAPI application
CMD ["uvicorn", "gov_agent.main:app", "--host", "0.0.0.0", "--port", "8080"]