digital-practices-map / Dockerfile
inactinique's picture
Digital Practices Map: first version
2aeed3a verified
Raw History Blame Contribute Delete
312 Bytes
# Space Hugging Face (type Docker) : le même code qu'en local, sur le port 7860.
FROM python:3.12-slim
RUN useradd -m -u 1000 user
USER user
WORKDIR /home/user/app
COPY --chown=user . .
ENV HOST=0.0.0.0 PORT=7860 DATA_DIR=/tmp/dpm-data PYTHONUNBUFFERED=1
EXPOSE 7860
CMD ["python", "chaine.py", "--no-browser"]