amanat / Dockerfile
seriffic's picture
Pin strands==1.34.1, use python:3.13-slim to match local
149456a
Raw
History Blame Contribute Delete
476 Bytes
# Amanat on HF Spaces — watsonx Granite 4 backend
FROM python:3.13-slim
RUN apt-get update && apt-get install -y --no-install-recommends curl \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
WORKDIR /home/user/app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN chmod +x entrypoint.sh && chown -R 1000:1000 /home/user/app
USER 1000
ENV HOME=/home/user
ENV DEMO_TOOLS=true
EXPOSE 8000
CMD ["./entrypoint.sh"]