microservice-base/Dockerfile

19 lines
564 B
Docker
Raw Normal View History

2022-05-03 04:48:04 +00:00
FROM python:alpine AS build
RUN apk add --no-cache gcc make musl-dev linux-headers git \
&& pip3 wheel --wheel-dir=/wheels \
2022-08-03 20:53:53 +00:00
flask \
2022-08-02 19:41:25 +00:00
git+https://github.com/Assarius/sanic-prometheus@Sanic_22 \
2022-08-03 20:53:53 +00:00
kubernetes \
2022-08-02 19:41:25 +00:00
kubernetes_asyncio \
motor \
pyjwt \
2022-08-02 13:14:43 +00:00
pyyaml \
2022-08-02 19:41:25 +00:00
sanic \
velebit-useful-logs
2022-05-03 04:48:04 +00:00
FROM python:alpine
COPY --from=build /wheels /wheels
2022-08-03 21:11:55 +00:00
RUN pip3 install --no-index /wheels/*.whl && rm -Rfv /wheels
2022-05-03 04:48:04 +00:00
LABEL name="k-space/microservice-base" \
version="rc" \
maintainer="Lauri Võsandi <lauri@k-space.ee>"