microservice-base/Dockerfile
Lauri Võsandi 97a89aab75
All checks were successful
continuous-integration/drone Build is passing
Initial commit
2022-05-06 19:25:32 +03:00

11 lines
392 B
Docker

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 <lauri@k-space.ee>"