Dockerize application to run on cronjob
This commit is contained in:
		
							parent
							
								
									3ee34e37a8
								
							
						
					
					
						commit
						95d481ccc9
					
				
							
								
								
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					FROM python:3.10
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					WORKDIR /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					COPY requirements.txt /app
 | 
				
			||||||
 | 
					RUN pip install -r requirements.txt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					COPY stockbot-buyvm.py /app
 | 
				
			||||||
 | 
					COPY config.py /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMD ["python", "stockbot-buyvm.py"]
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user