Spaces:
Runtime error
Runtime error
File size: 604 Bytes
1a6e687 a84af31 1a6e687 37dc946 78a4bd8 1a6e687 78a4bd8 1a6e687 78a4bd8 1a6e687 ff9e6c4 1a6e687 09392c6 ad3ccb2 1a6e687 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Dockerfile
# Use a base image appropriate for your application
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9
# Set working directory
WORKDIR /app
# Copy requirements.txt first for caching dependencies
COPY ./requirements.txt .
# Install dependencies
RUN pip install -r requirements.txt
# Copy the rest of the application code
COPY . .
# Create necessary directories and set permissions
RUN mkdir -p /app/static/uploads /app/static/results \
&& chmod -R 777 /app/static/uploads /app/static/results
# Start the application
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|