veo3-json-creator / Dockerfile
baxin's picture
Create Dockerfile
1f65ea2 verified
# Use a Python 3.9 slim image as the base
FROM python:3.9-slim
# Set the working directory inside the container
WORKDIR /app
# Update the package list and install necessary dependencies.
# I've removed 'software-properties-common' because it is not available in the slim image,
# and have kept 'libgl1' to fix the previous error.
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
git-lfs \
ffmpeg \
libsm6 \
libxext6 \
cmake \
rsync \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
# Copy the requirements file and install the Python dependencies
COPY requirements.txt ./
COPY src/ ./src/
RUN pip3 install -r requirements.txt
# Expose the port for the Streamlit application
EXPOSE 8501
# Add a health check to ensure the application is running
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
# Define the entry point to run the Streamlit application
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]