File size: 323 Bytes
9cf8198 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# 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"]
|