-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev-developer-api
More file actions
35 lines (27 loc) · 1.02 KB
/
Dockerfile.dev-developer-api
File metadata and controls
35 lines (27 loc) · 1.02 KB
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
26
27
28
29
30
31
32
33
34
35
# syntax=docker/dockerfile:1.4
FROM python:3.12-slim
RUN apt-get update && \
apt-get install --yes --no-install-recommends build-essential curl gcc pkg-config && \
pip install --no-cache-dir uv && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN uv sync --frozen --extra uvicorn --no-dev
EXPOSE 8000
ENV \
TIGRBL_AUTH_PROFILE="production" \
AUTHN_ISSUER="http://localhost:8017" \
TIGRBL_AUTH_PROTECTED_RESOURCE_IDENTIFIER="http://localhost:8017/resource" \
TIGRBL_AUTH_REQUIRE_TLS="false" \
TIGRBL_AUTH_ADMIN_API_KEY="dev-developer-key" \
TIGRBL_AUTH_ADMIN_API_KEY_DIR="/tmp/tigrbl-auth-developer" \
PG_HOST="" \
PG_PORT="5432" \
PG_DB="" \
PG_USER="" \
PG_PASS="" \
REDIS_HOST="" \
REDIS_PASSWORD="" \
PYTHONPATH="/app/pkgs/tigrbl-auth-api-developer/src:/app" \
UV_PROJECT_ENVIRONMENT="/app/.venv"
CMD ["/app/.venv/bin/python", "-m", "uvicorn", "tigrbl_auth_api_developer:app", "--host", "0.0.0.0", "--port", "8000", "--log-level", "info", "--proxy-headers"]