# Use your base Docker image from Docker Hub FROM circulartextapp/circulartextai # Set a non-root user USER appuser # Set the working directory WORKDIR /code # 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 . . # Create a directory for storing files and set permissions RUN mkdir /code/files && chmod 777 /code/files # 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"]