This commit is contained in:
		
							
								
								
									
										17
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								.drone.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
kind: pipeline
 | 
			
		||||
type: docker
 | 
			
		||||
name: default
 | 
			
		||||
 | 
			
		||||
steps:
 | 
			
		||||
- name: kaniko
 | 
			
		||||
  image: banzaicloud/drone-kaniko
 | 
			
		||||
  settings:
 | 
			
		||||
    registry: registry.kmlabz.com
 | 
			
		||||
    repo: modelling_for_engineers/${DRONE_REPO_NAME}
 | 
			
		||||
    username:
 | 
			
		||||
      from_secret: DOCKER_USERNAME
 | 
			
		||||
    password:
 | 
			
		||||
      from_secret: DOCKER_PASSWORD
 | 
			
		||||
    tags:
 | 
			
		||||
      - latest
 | 
			
		||||
      - ${DRONE_BUILD_NUMBER}
 | 
			
		||||
							
								
								
									
										7
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
FROM python:3
 | 
			
		||||
 | 
			
		||||
COPY . /kebabc/
 | 
			
		||||
RUN pip3 install -r /kebabc/requirements.txt
 | 
			
		||||
 | 
			
		||||
WORKDIR /kebabc
 | 
			
		||||
CMD gunicorn -b 0.0.0.0 app:app
 | 
			
		||||
@@ -1,3 +1,5 @@
 | 
			
		||||
flask
 | 
			
		||||
sqlalchemy
 | 
			
		||||
flask-sqlalchemy
 | 
			
		||||
gunicorn
 | 
			
		||||
psycopg2-binary
 | 
			
		||||
		Reference in New Issue
	
	Block a user