You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
microservice-base/Dockerfile

35 lines
951 B

9 months ago
FROM python:alpine AS build
RUN apk add --no-cache gcc make musl-dev linux-headers git \
&& pip3 wheel --wheel-dir=/wheels \
3 months ago
aiofile \
flask \
git+https://github.com/Assarius/sanic-prometheus@Sanic_22 \
kubernetes \
kubernetes_asyncio \
motor \
prometheus-async \
prometheus-flask-exporter \
pyjwt \
pyyaml \
sanic \
3 months ago
sanic-ext \
3 months ago
sanic-wtf \
ecs-logging
3 months ago
# Work around buggy setup.py in caio
RUN git clone https://github.com/mosquito/caio/ \
&& cd caio \
&& python3 setup.py bdist_wheel \
&& rm /wheels/*caio*.whl \
&& cp dist/*.whl /wheels/
# Generate image without build dependencies
9 months ago
FROM python:alpine
COPY --from=build /wheels /wheels
RUN pip3 install --no-index /wheels/*.whl && rm -Rfv /wheels
9 months ago
LABEL name="k-space/microservice-base" \
version="rc" \
maintainer="Lauri Võsandi <lauri@k-space.ee>"
ENV PYTHONUNBUFFERED=1
ENV CAIO_IMPL=linux