microservice-base/Dockerfile
Lauri Võsandi 892152b3bf
All checks were successful
continuous-integration/drone Build is passing
Add sanic-ext
2022-10-29 08:38:17 +03:00

21 lines
599 B
Docker

FROM python:alpine AS build
RUN apk add --no-cache gcc make musl-dev linux-headers git \
&& pip3 wheel --wheel-dir=/wheels \
flask \
git+https://github.com/Assarius/sanic-prometheus@Sanic_22 \
kubernetes \
kubernetes_asyncio \
motor \
prometheus-async \
pyjwt \
pyyaml \
sanic \
sanic-ext \
ecs-logging
FROM python:alpine
COPY --from=build /wheels /wheels
RUN pip3 install --no-index /wheels/*.whl && rm -Rfv /wheels
LABEL name="k-space/microservice-base" \
version="rc" \
maintainer="Lauri Võsandi <lauri@k-space.ee>"