CoolFace
Apppublic

celsoares78/AgendaAI

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
Dockerfile21 linesDownload Raw Back to root
1FROM python:3.112 3 4ENV FORCE_REBUILD=15 6WORKDIR /code7 8COPY ./requirements.txt /code/requirements.txt9 10RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt11 12COPY . .13 14# Create a writable directory for the app to use (e.g. for notes.txt or token.json storage if needed)15# Note: HF Spaces file system is ephemeral, so real persistence needs a database or external storage.16# For token.json, we will expect it to be passed via ENV VAR or created. 17# But for now, just setting permissions.18RUN chmod -R 777 /code19 20CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips", "*"]21