diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..cf8bb3a --- /dev/null +++ b/backend/Dockerfile @@ -0,0 +1,27 @@ +FROM --platform=linux/amd64 python:3.11-slim + +# Install uv +RUN pip install uv + +WORKDIR /app + +# Copy local dependencies (relative to project root) +COPY eudplib-0.80.6-cp310-abi3-linux_x86_64.whl /eudplib-0.80.6-cp310-abi3-linux_x86_64.whl +COPY wengine/ /wengine/ + +# Copy backend source +COPY backend/ /app/ + +# Install dependencies +RUN uv sync --no-dev + +# Copy preprocess output (tileset static data) +# tileset.py resolves 6 parent dirs up from its location to reach project root +COPY preprocess/output/ /preprocess/output/ + +# Create required runtime directories +RUN mkdir -p /app/output /app/logs /app/static + +EXPOSE 8000 + +CMD ["sh", "-c", "uv run uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8000}"] diff --git a/backend/pyproject.toml b/backend/pyproject.toml index efdb578..c19d528 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ ] [tool.uv.sources] -eudplib = { path = "../eudplib-0.80.0-cp310-abi3-macosx_11_0_arm64.whl", marker = "platform_system == 'Linux'" } +eudplib = { path = "../eudplib-0.80.6-cp310-abi3-linux_x86_64.whl", marker = "platform_system == 'Linux'" } wengine = { path = "../wengine", editable = true } [project.optional-dependencies] diff --git a/eudplib-0.80.6-cp310-abi3-linux_x86_64.whl b/eudplib-0.80.6-cp310-abi3-linux_x86_64.whl new file mode 100644 index 0000000..929b69c Binary files /dev/null and b/eudplib-0.80.6-cp310-abi3-linux_x86_64.whl differ