Files
microservice-base/Dockerfile
rasmus d208249e77 remove caio workaronud
aio / caio does not seem used anywhere in k-space domain

multiple apps deployed with changes, no effects noted
2026-06-11 21:45:14 +03:00

27 lines
730 B
Docker

FROM python:alpine AS build
RUN apk add --no-cache gcc make musl-dev linux-headers git \
&& pip3 wheel --wheel-dir=/wheels \
aiofile \
flask \
git+https://github.com/laurivosandi/sanic-prometheus \
kubernetes \
kubernetes_asyncio \
motor \
prometheus-async \
prometheus-flask-exporter \
pyjwt \
pyyaml \
sanic \
sanic-ext \
sanic-wtf \
ecs-logging
# Generate image without build dependencies
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>"
ENV PYTHONUNBUFFERED=1