Added docker stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2020-09-24 17:17:11 +02:00
parent d32686b6d5
commit c2f15ea5c1
3 changed files with 27 additions and 1 deletions

17
.drone.yml Normal file
View 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
View 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

View File

@ -1,3 +1,5 @@
flask
sqlalchemy
flask-sqlalchemy
gunicorn
psycopg2-binary