-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 793 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 793 Bytes
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
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
UV_SYSTEM_PYTHON=1 \
PATH=${PATH}:/root/.local/bin/
EXPOSE 8000
WORKDIR /app
COPY pyproject.toml README.md server.py ./
COPY genomicops ./genomicops
RUN apt-get update && apt-get install -y \
curl wget \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /app/src/server/liftover_data \
&& wget -O /app/src/server/liftover_data/liftOver \
http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver \
&& chmod +x /app/src/server/liftover_data/liftOver \
&& curl -LsSf https://astral.sh/uv/install.sh | sh
RUN uv sync --no-dev
CMD ["uv", "run", "fastmcp", "run", "server.py", "--transport", "streamable-http", "--host", "0.0.0.0", "--port", "8000"]