jarvis-space / Dockerfile
Tim Luka Horstmann
change cache for whsiper
0eb2d48
FROM python:3.10-slim
ENV DEBIAN_FRONTEND=noninteractive \
HF_HOME=/app/cache
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential cmake git curl wget ninja-build libgomp1 ca-certificates \
nodejs npm supervisor \
&& rm -rf /var/lib/apt/lists/* \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
&& . "$HOME/.cargo/env" && rustup default stable
WORKDIR /app
RUN npm install --no-save \
supergateway \
@modelcontextprotocol/server-google-maps \
@modelcontextprotocol/server-brave-search \
@kazuph/mcp-fetch \
@timlukahorstmann/mcp-weather
ENV PATH=/app/node_modules/.bin:$PATH \
NODE_PATH=/app/node_modules
# Copy files to root
COPY backend/app.py /app/app.py
COPY backend/config.yaml /app/config.yaml
COPY backend/requirements.txt /app/requirements.txt
COPY frontend/index.html /app/static/index.html
COPY frontend/script.js /app/static/script.js
COPY frontend/style.css /app/static/style.css
RUN mkdir -p /app/cache /app/logs /app/workspace \
&& chmod -R 777 /app/cache /app/logs /app/workspace
RUN pip install -r requirements.txt \
&& pip install spacy \
&& python -m spacy download en_core_web_sm
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]