Spaces:
Runtime error
Runtime error
File size: 552 Bytes
c379e3b afb5c39 c379e3b afb5c39 c379e3b afb5c39 c379e3b afb5c39 c379e3b afb5c39 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.10-slim
# Create a user and set the working directory
RUN useradd user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
HF_TOKEN="hf_BSEQRrgyRVuNfkhWwUjTwGEQxUvYRySrzda"
WORKDIR $HOME/app
# Copy the application code
COPY --chown=user ./ $HOME/app
# Install dependencies from requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 7860 (FastAPI default)
EXPOSE 7860
# Set the entrypoint for the FastAPI app
CMD ["uvicorn", "app:app", "--reload", "--host=0.0.0.0", "--port=7860"]
|