Some checks failed
Docker build and publish / build-and-push-image (push) Has been cancelled
19 lines
417 B
Docker
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" ]
|