add: dockerfile
This commit is contained in:
		
							parent
							
								
									bcafac3766
								
							
						
					
					
						commit
						37ee688096
					
				
							
								
								
									
										5
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					FROM python:3.12.3-alpine
 | 
				
			||||||
 | 
					LABEL maintainer="565963@gmail.com"
 | 
				
			||||||
 | 
					WORKDIR /app
 | 
				
			||||||
 | 
					COPY ./src .
 | 
				
			||||||
 | 
					ENTRYPOINT ["/usr/local/bin/python", "main.py"]
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,7 @@
 | 
				
			||||||
from functools import cache
 | 
					from functools import cache
 | 
				
			||||||
import urllib.request
 | 
					import urllib.request
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@cache
 | 
					@cache
 | 
				
			||||||
def weather_handler(date: str):
 | 
					def weather_handler(date: str):
 | 
				
			||||||
    print(date)
 | 
					    print(date)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user