forked from embeddedos-org/ebuild
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (20 loc) · 979 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (20 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ═══════════════════════════════════════════════════════════
# ebuild/eFab Dockerfile — Python build toolchain
# ═══════════════════════════════════════════════════════════
FROM python:3.12-slim AS base
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
make \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements*.txt ./
RUN pip install --no-cache-dir -r requirements.txt 2>/dev/null || true
COPY . .
RUN pip install --no-cache-dir -e . 2>/dev/null || true
FROM base AS test-runner
RUN pip install --no-cache-dir pytest pytest-cov
CMD ["python3", "-m", "pytest", "tests/", "-v", "--tb=short"]
FROM base AS production
CMD ["python3", "-m", "ebuild"]