commit 97a89aab75a0780d4a9eeed9c0cbd33f6df00cf5 Author: Lauri Võsandi Date: Tue May 3 07:48:04 2022 +0300 Initial commit 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