File size: 488 Bytes
6f7e9e8 86f2022 7d890dc 86f2022 6f7e9e8 86f2022 6f7e9e8 f478393 6f7e9e8 86f2022 6f7e9e8 86f2022 6f7e9e8 |
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
# Create a non-root user for security
RUN useradd -m -u 1000 user
# Set the working directory
WORKDIR /app
# *** ADD THIS LINE ***
ENV PYTHONUNBUFFERED=1
# Copy the requirements file and install dependencies
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy all other files
COPY --chown=user . /app
# Expose the port that Gradio runs on
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"] |