microservice-base/Dockerfile
Lauri Võsandi ebe8ba5561
Some checks reported errors
continuous-integration/drone Build was killed
Switch to ECS logging library
2022-09-09 14:46:53 +03:00

19 lines
556 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 \
pyjwt \
pyyaml \
sanic \
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>"