# Use a lightweight Python image | |
FROM python:3.9-slim | |
# Set the working directory | |
WORKDIR /app | |
# Copy all files | |
COPY . /app | |
# Install dependencies | |
RUN pip install flask google-cloud-storage | |
# Ensure sync.sh is executable | |
RUN chmod +x sync.sh | |
# Expose the API port | |
EXPOSE 7860 | |
# Run Flask app | |
CMD ["python", "app.py"] | |