Spaces:
Running
Running
# Use the base image with necessary dependencies | |
FROM circulartextapp/spaceread | |
# Set the working directory to /app | |
WORKDIR /app | |
# Copy the current directory contents into the container at /app | |
COPY . /app | |
# Set the entrypoint script as executable | |
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | |
RUN chmod +x /usr/local/bin/entrypoint.sh | |
# Set the entrypoint script as the default entrypoint for the container | |
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | |
# Default command to run if the user doesn't provide a command | |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860", "--reload"] | |