bids-neuroimaging / Dockerfile
TobiasPitters's picture
fix port
3b8d8f6
raw
history blame contribute delete
429 Bytes
FROM python:3.13-slim
WORKDIR /app
# Install git (needed for git+ URLs in requirements.txt)
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
COPY data/ data/
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY main.py .
EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]