From 72b6cc7b88cced54444a462bc9a478bca0abd871 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Sun, 27 Jun 2021 16:05:39 +0200 Subject: [PATCH] initial commit --- .drone.yml | 29 +++++++++++++++++++++++++++++ Dockerfile | 14 ++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile 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