Spaces:
Build error
Build error
File size: 358 Bytes
7bc5443 99d8e37 7bc5443 99d8e37 2f8ce3b 99d8e37 2f8ce3b 99d8e37 2f8ce3b 1ae2d4b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Use Python 3.9 as the base image
FROM python:3.9
# Set working directory
WORKDIR /app
# Copy all files into the container
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose Flask API port
EXPOSE 8000
# Run Gunicorn and explicitly specify the module (api.py) and app instance
CMD["python","api.py"] |