FROM python:3.9-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . # Create templates directory and add HTML file RUN mkdir -p templates # Create simple HTML template RUN echo 'Weather App

Weather App

' > templates/index.html EXPOSE 5000 CMD ["python", "app.py"]