nanobot / Dockerfile
Luis Milke
Initial deployment nanobot
3c78e2d
raw
history blame contribute delete
482 Bytes
FROM python:3.12-slim
# Hugging Face erfordert einen Non-Root User (UID 1000)
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
# Nanobot installieren
RUN pip install --no-cache-dir nanobot-ai
# Verzeichnis für Konfiguration erstellen
RUN mkdir -p $HOME/.nanobot
COPY --chown=user start.sh $HOME/app/start.sh
RUN chmod +x $HOME/app/start.sh
# Port für Hugging Face Health-Check
EXPOSE 7860
CMD ["./start.sh"]