Devchuz/llm_code
0
1# Use the official Python image as the base image2FROM python:3.9-slim3 4RUN useradd -m -u 1000 user5USER user6ENV PATH="/home/user/.local/bin:$PATH"7 8# Set the working directory in the container9WORKDIR /app10 11# Copy the requirements.txt file into the container12COPY requirements.txt .13 14# Install any dependencies specified in requirements.txt15COPY --chown=user ./requirements.txt requirements.txt16RUN pip install --no-cache-dir --upgrade -r requirements.txt17 18# Copy the rest of the application code to the working directory19COPY --chown=user . /app20 21# Expose port 7860 for the FastAPI app22EXPOSE 786023 24# Especifica el comando predeterminado a ejecutar cuando se inicie el contenedor25CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]26 