forked from itay1542/brokers-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 898 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Use a Python base image (version can be adjusted)
FROM ghcr.io/astral-sh/uv:python3.11-bookworm-slim
# Set the working directory
WORKDIR /app
ENV UV_COMPILE_BYTECODE=1
# Copy from the cache instead of linking since it's a mounted volume
ENV UV_LINK_MODE=copy
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --frozen --no-install-project --no-install-workspace --no-dev
ADD . /app
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --no-dev
ENV PATH="/app/.venv/bin:$PATH"
ENTRYPOINT [ ]
# Make the startup script executable
RUN chmod +x run_all_services.sh
# Expose the ports used by the services (optional but good practice)
EXPOSE 8001
EXPOSE 8002
EXPOSE 8003
# Set the default command to run your script
CMD ["./run_all_services.sh"]