From 97a89aab75a0780d4a9eeed9c0cbd33f6df00cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Tue, 3 May 2022 07:48:04 +0300 Subject: [PATCH] Initial commit --- .drone.yml | 2 ++ Dockerfile | 10 ++++++++++ README.md | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 .drone.yml create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..e7b5dfa --- /dev/null +++ b/.drone.yml @@ -0,0 +1,2 @@ +kind: template +load: docker.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8905eb4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM python:alpine AS build +RUN apk add --no-cache gcc make musl-dev linux-headers \ + && pip3 wheel --wheel-dir=/wheels motor sanic sanic_prometheus + +FROM python:alpine +COPY --from=build /wheels /wheels +RUN pip3 install --no-index --find-links /wheels/*.whl && rm -Rfv /wheels +LABEL name="k-space/microservice-base" \ + version="rc" \ + maintainer="Lauri Võsandi " diff --git a/README.md b/README.md new file mode 100644 index 0000000..149e55b --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Background + +This is base Docker image for Sanic based microservices