Skip to content

Commit 6906c24

Browse files
authored
Merge pull request #108 from michaelnugent/container
Add Dockerfile
2 parents 0147a76 + 738c3a2 commit 6906c24

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

UnityMcpServer/src/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM python:3.12-slim
2+
3+
# Install required system dependencies
4+
RUN apt-get update && apt-get install -y --no-install-recommends \
5+
git \
6+
&& rm -rf /var/lib/apt/lists/*
7+
8+
# Set working directory
9+
WORKDIR /app
10+
11+
# Install uv package manager
12+
RUN pip install uv
13+
14+
# Copy required files
15+
COPY config.py /app/
16+
COPY server.py /app/
17+
COPY unity_connection.py /app/
18+
COPY pyproject.toml /app/
19+
COPY __init__.py /app/
20+
COPY tools/ /app/tools/
21+
22+
# Install dependencies using uv
23+
RUN uv pip install --system -e .
24+
25+
26+
# Command to run the server
27+
CMD ["uv", "run", "server.py"]

0 commit comments

Comments
 (0)