diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..2743e5f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,29 @@ +kind: pipeline +name: default + +steps: +- name: docker-base + image: plugins/docker + settings: + repo: registry.wtf-eg.net + target: ki-backend-base + autotag: true + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: docker-builder + image: plugins/docker + settings: + repo: registry.wtf-eg.net + target: ki-backend-builder + autotag: true + username: + from_secret: docker_username + password: + from_secret: docker_password + +trigger: + event: + - tag diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..37e86bf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM python:3.8-alpine as ki-backend-base + +ENV PYROOT /pyroot +ENV PYTHONUSERBASE $PYROOT + + +FROM base as ki-backend-builder + +RUN apk add --no-cache \ + gcc \ + g++ \ + musl-dev \ + python3-dev && \ + pip3 install pipenv