diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b5dd506 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,17 @@ +--- +kind: pipeline +type: kubernetes +name: default + +steps: +- name: docker + image: plugins/docker + settings: + repo: harbor.k-space.ee/${DRONE_REPO} + registry: harbor.k-space.ee + mtu: 1300 + squash: true + username: + from_secret: docker_username + password: + from_secret: docker_password diff --git a/Dockerfile b/Dockerfile index d45622f..8233d4d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,6 @@ -FROM python +FROM python:alpine +RUN apk add --no-cache gcc make musl-dev linux-headers RUN pip install motor sanic sanic-prometheus sanic_wtf +RUN apk del gcc make musl-dev linux-headers ADD lease.py / CMD /lease.py