Dockerfile 477 B

1234567891011121314151617
  1. # Use an official Python runtime as a parent image
  2. FROM python:3.9-slim
  3. # Set the working directory in the container
  4. WORKDIR /app
  5. # Copy the current directory contents into the container at /app
  6. COPY . /app
  7. # Install any needed packages specified in requirements.txt
  8. RUN pip install --no-cache-dir -r requirements.txt
  9. # Make port 5000 available to the world outside this container
  10. EXPOSE 5000
  11. # Run app.py when the container launches
  12. CMD ["flask", "run", "--host=0.0.0.0"]