microservice-base/Dockerfile
Lauri Võsandi 23dec9ed6b
All checks were successful
continuous-integration/drone Build is passing
Cherry pick prometheus-sanic and add pyjwt
2022-07-28 09:01:09 +03:00

14 lines
474 B
Docker

FROM python:alpine AS build
RUN apk add --no-cache gcc make musl-dev linux-headers git \
&& pip3 wheel --wheel-dir=/wheels \
motor \
pyjwt \
sanic \
git+https://github.com/Assarius/sanic-prometheus@Sanic_22
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 <lauri@k-space.ee>"