File size: 717 Bytes
29dc9d1 3771e0b 29dc9d1 3771e0b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | FROM python:3.11-slim
# Set environment variables to prevent Python from writing .pyc files and to buffer stdout and stderr
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Set the working directory inside the container
WORKDIR /app
ENV PYTHONPATH=/app
ENV GRADIO_SERVER_NAME="0.0.0.0"
# Copy the files into the working directory
COPY ../../vianu/__init__.py /app/vianu/__init__.py
COPY ../../vianu/spock /app/vianu/spock
# Install dependencies from requirements.txt
RUN pip install --upgrade pip \
&& pip install -r vianu/spock/requirements.txt
# Expose the port your Gradio app will run on (default: 7860)
EXPOSE 7868
# Command to run the application
CMD ["python", "vianu/spock/launch_demo_app.py"] |