Skip to content

Commit e91c4de

Browse files
committed
Add Dockerfile, .dockerignore, and render.yaml for Render deployment
1 parent e149d8d commit e91c4de

3 files changed

Lines changed: 76 additions & 0 deletions

File tree

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.env
2+
.git
3+
.github
4+
.pytest_cache
5+
.venv
6+
__pycache__
7+
*.pyc
8+
*.pyo
9+
*.pyd
10+
*.log
11+
DEVLOG.md
12+
docs/pdf_rendered
13+
tests

Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
FROM python:3.11-slim
2+
3+
ENV PYTHONDONTWRITEBYTECODE=1 \
4+
PYTHONUNBUFFERED=1 \
5+
PIP_NO_CACHE_DIR=1 \
6+
UV_PROJECT_ENVIRONMENT=/app/.venv \
7+
PATH="/app/.venv/bin:${PATH}" \
8+
STREAMLIT_SERVER_HEADLESS=true
9+
10+
WORKDIR /app
11+
12+
RUN apt-get update && apt-get install -y --no-install-recommends \
13+
build-essential \
14+
fonts-dejavu-core \
15+
fonts-liberation \
16+
libatk1.0-0 \
17+
libcairo2 \
18+
libgdk-pixbuf-2.0-0 \
19+
libglib2.0-0 \
20+
libharfbuzz0b \
21+
libjpeg62-turbo \
22+
libpango-1.0-0 \
23+
libpangocairo-1.0-0 \
24+
libxml2 \
25+
libxslt1.1 \
26+
shared-mime-info \
27+
&& rm -rf /var/lib/apt/lists/*
28+
29+
RUN pip install uv
30+
31+
COPY pyproject.toml uv.lock ./
32+
RUN uv sync --frozen --no-dev
33+
34+
COPY . .
35+
36+
CMD ["sh", "-c", "streamlit run app.py --server.address 0.0.0.0 --server.port ${PORT:-8501}"]

render.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
services:
2+
- type: web
3+
name: ai-job-application-agent
4+
runtime: docker
5+
plan: free
6+
autoDeploy: true
7+
healthCheckPath: /
8+
dockerfilePath: ./Dockerfile
9+
envVars:
10+
- key: PYTHONUNBUFFERED
11+
value: "1"
12+
- key: STREAMLIT_SERVER_HEADLESS
13+
value: "true"
14+
- key: AUTH_REQUIRED_FOR_ASSISTED_WORKFLOW
15+
value: "true"
16+
- key: AUTH_DEFAULT_PLAN_TIER
17+
value: "free"
18+
- key: AUTH_DEFAULT_ACCOUNT_STATUS
19+
value: "active"
20+
- key: SAVED_WORKSPACE_TTL_HOURS
21+
value: "24"
22+
- key: SUPABASE_APP_USERS_TABLE
23+
value: app_users
24+
- key: SUPABASE_USAGE_EVENTS_TABLE
25+
value: usage_events
26+
- key: SUPABASE_SAVED_WORKSPACES_TABLE
27+
value: saved_workspaces

0 commit comments

Comments
 (0)