trmnl-bring-plugin/Dockerfile
Lysann Tranvouez 07518a1f8f
Some checks failed
Docker build and publish / build-and-push-image (push) Has been cancelled
update base image, smaller image type (alpine)
2026-01-03 22:42:40 +00:00

19 lines
417 B
Docker

FROM python:3.13.11-alpine3.23 AS builder
RUN apk add --no-cache gcc g++ musl-dev rust cargo patchelf
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
FROM python:3.13.11-alpine3.23
COPY --from=builder /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
RUN apk add --no-cache libstdc++
WORKDIR /usr/src/app
COPY . .
CMD [ "python", "-u", "./main.py" ]