# Use your base Docker image from Docker Hub FROM circulartextapp/circulartextai # Create a non-root user RUN adduser --disabled-password --gecos '' appuser # Set the working directory WORKDIR /code # Switch to the appuser USER appuser # Copy the requirements file and install dependencies COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # Copy the rest of your application files COPY . . # Copy the entrypoint script COPY ./entrypoint.sh /entrypoint.sh # Give execute permission to the entrypoint script RUN chmod +x /entrypoint.sh # Specify the entrypoint ENTRYPOINT ["/entrypoint.sh"]