* add plane-pi folder to apps/ * chore: add Plane PI build-push workflow to GitHub Actions * chore: update Plane PI build-push workflow with environment variables and job configuration * chore: remove Plane PI build-push workflow from GitHub Actions * chore: rename folder in apps --------- Co-authored-by: akshat5302 <[email protected]> Co-authored-by: sriramveeraghanta <[email protected]>
34 lines
730 B
Docker
34 lines
730 B
Docker
FROM python:3.12-slim AS builder
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
libffi-dev \
|
|
libjpeg-dev \
|
|
gcc \
|
|
curl \
|
|
git \
|
|
wget \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN pip install --upgrade pip && \
|
|
pip install --no-cache-dir -r requirements.txt && \
|
|
pip install --no-cache-dir -e .
|
|
|
|
FROM python:3.12-slim AS base-runtime
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /usr/local/lib/python3.12 /usr/local/lib/python3.12
|
|
COPY --from=builder /usr/local/bin /usr/local/bin
|
|
COPY --from=builder /app/pi /app/pi
|
|
COPY --from=builder /app/bin /app/bin
|
|
|
|
ENV PYTHONPATH=/app
|
|
|
|
VOLUME [ "/var/tls" ]
|
|
|
|
CMD ["./bin/entrypoint-api.sh"] |