Creating Project Files

هذا الالتزام موجود في:
ahmedgamalyousef
2025-09-25 16:11:56 +03:00
الأصل c9bd52fad0
التزام fb7be3f518
4 ملفات معدلة مع 583 إضافات و0 حذوفات

18
Dockerfile Normal file
عرض الملف

@@ -0,0 +1,18 @@
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 '<!DOCTYPE html><html><head><title>Weather App</title></head><body><h1>Weather App</h1><form action="/weather" method="POST"><input type="text" name="city" placeholder="Enter city name" required><button type="submit">Get Weather</button></form></body></html>' > templates/index.html
EXPOSE 5000
CMD ["python", "app.py"]