commit
6906c24290
|
|
@ -0,0 +1,27 @@
|
||||||
|
FROM python:3.12-slim
|
||||||
|
|
||||||
|
# Install required system dependencies
|
||||||
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
|
git \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Set working directory
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Install uv package manager
|
||||||
|
RUN pip install uv
|
||||||
|
|
||||||
|
# Copy required files
|
||||||
|
COPY config.py /app/
|
||||||
|
COPY server.py /app/
|
||||||
|
COPY unity_connection.py /app/
|
||||||
|
COPY pyproject.toml /app/
|
||||||
|
COPY __init__.py /app/
|
||||||
|
COPY tools/ /app/tools/
|
||||||
|
|
||||||
|
# Install dependencies using uv
|
||||||
|
RUN uv pip install --system -e .
|
||||||
|
|
||||||
|
|
||||||
|
# Command to run the server
|
||||||
|
CMD ["uv", "run", "server.py"]
|
||||||
Loading…
Reference in New Issue