Spaces:
Build error
Build error
FROM winamd64/python:3 | |
#ENV PATH="/home/user/.local/bin:$PATH" | |
WORKDIR /app | |
# Install necessary dependencies with apk | |
RUN winget install python | |
RUN winget install ffmpeg | |
RUN winget install MiKTeX.MiKTeX | |
COPY ./requirements.txt requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
RUN mkdir -p /app/media | |
# (Optional) Set permissions for the newly created directory | |
RUN chmod -R 777 /app/media | |
COPY . /app | |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |