* Deploy Virtual Bussiness card.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
564 B

  1. # Use the official Python image as base
  2. FROM python:3.9-slim
  3. # Set environment variables
  4. ENV PYTHONDONTWRITEBYTECODE 1
  5. ENV PYTHONUNBUFFERED 1
  6. # Set the working directory in the container
  7. WORKDIR /app
  8. # Copy the requirements file into the container
  9. COPY requirements.txt .
  10. # Install dependencies
  11. RUN pip install --no-cache-dir -r requirements.txt
  12. # Copy the entire application into the container
  13. COPY . .
  14. # Create a volume for static files
  15. VOLUME /app/static
  16. # Expose the port the app runs on
  17. EXPOSE 5000
  18. # Command to run the application
  19. CMD python3 app.py