Spaces:
Sleeping
Sleeping
File size: 692 Bytes
19ef158 0d812de 53bb30d 19ef158 0d812de 53bb30d 19ef158 0d812de 53bb30d 19ef158 0d812de 53bb30d 19ef158 0d812de 53bb30d 0d812de 53bb30d a606eb4 75f98be |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
FROM python:3.10
# Create a user with home directory
RUN useradd -m -u 1000 user
# Set environment variables
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
# Switch to the new user
USER user
# Set working directory
WORKDIR $HOME/app
# Clone the repository directly (public repo)
RUN git clone https://github.com/viratxd/deepseek2api.git
# Change working directory to the cloned repo
WORKDIR $HOME/app/deepseek2api
# Install dependencies
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Expose the desired port
EXPOSE 7860
# Run the application using Uvicorn on port 7860 and listen on 0.0.0.0
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|