Add dockerfile and CI to build it
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		
							parent
							
								
									f0da90a81b
								
							
						
					
					
						commit
						7202f9d535
					
				
					 2 changed files with 30 additions and 0 deletions
				
			
		
							
								
								
									
										21
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,21 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					kind: pipeline
 | 
				
			||||||
 | 
					name: build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					steps:
 | 
				
			||||||
 | 
					- name: build image
 | 
				
			||||||
 | 
					  image: plugins/docker
 | 
				
			||||||
 | 
					  settings:
 | 
				
			||||||
 | 
					    repo: kleph/pytubedl
 | 
				
			||||||
 | 
					    tags: 
 | 
				
			||||||
 | 
					      - ${DRONE_COMMIT_SHA:0:8}
 | 
				
			||||||
 | 
					      - latest
 | 
				
			||||||
 | 
					    username:
 | 
				
			||||||
 | 
					      from_secret: dockerhub_username
 | 
				
			||||||
 | 
					    password:
 | 
				
			||||||
 | 
					      from_secret: dockerhub_password
 | 
				
			||||||
 | 
					  when:
 | 
				
			||||||
 | 
					    event:
 | 
				
			||||||
 | 
					      exclude:
 | 
				
			||||||
 | 
					      - pull_request
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										9
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,9 @@
 | 
				
			||||||
 | 
					FROM python:slim
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
 | 
					RUN pip install flask
 | 
				
			||||||
 | 
					COPY /pytubedl/pytubedl.py /pytubedl.py
 | 
				
			||||||
 | 
					COPY /pytubedl/templates /templates
 | 
				
			||||||
 | 
					EXPOSE 5000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMD ["python", "pytubedl.py"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue