Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}"]
2 changes: 1 addition & 1 deletion backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
Binary file added eudplib-0.80.6-cp310-abi3-linux_x86_64.whl
Binary file not shown.