feat: support running in docker

This commit is contained in:
Noah Gao
2025-07-04 13:29:59 +08:00
committed by Holegots
parent 0565ac493d
commit ab06e9bf90
2 changed files with 19 additions and 0 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM ghcr.io/astral-sh/uv:bookworm-slim
# Copy the project into the image
ADD . /app
# Sync the project into a new environment, asserting the lockfile is up to date
WORKDIR /app
RUN uv sync --locked
CMD ["uv", "run", "start_proxy.py"]

9
docker-compose.yml Normal file
View File

@@ -0,0 +1,9 @@
services:
proxy:
build:
context: .
dockerfile: Dockerfile
ports:
- 8082:8082
volumes:
- ./.env:/app/.env