File size: 393 Bytes
94ba092
454b790
 
 
d6c1055
 
94ba092
454b790
d6c1055
 
 
88f750c
4ebb74e
d6c1055
 
 
 
 
454b790
d6c1055
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim

WORKDIR /app

# Install dependencies
COPY pyproject.toml .
RUN uv sync

# Copy application code
COPY main.py .
COPY admin.py .
COPY admin.html .
COPY gemini_session.py .

# Expose the port the app runs on
ENV PORT=7860
EXPOSE ${PORT}

# Command to run the application
CMD ["sh", "-c", "uv run uvicorn main:app --host 0.0.0.0 --port ${PORT}"]