mirror of
https://github.com/sstent/minihass.git
synced 2026-01-25 12:01:37 +00:00
sync
This commit is contained in:
@@ -6,10 +6,14 @@ COPY requirements.txt .
|
|||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Stage 2: Final image using architecture-specific Python
|
# Stage 2: Final image using architecture-specific Python
|
||||||
|
ARG TARGETPLATFORM
|
||||||
FROM --platform=$TARGETPLATFORM python:3.11-slim
|
FROM --platform=$TARGETPLATFORM python:3.11-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
|
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# Verify Python binary architecture
|
||||||
|
RUN python -c "import platform; print(f'Python arch: {platform.machine()}')"
|
||||||
|
|
||||||
CMD ["python", "app.py"]
|
CMD ["python", "app.py"]
|
||||||
|
|||||||
Reference in New Issue
Block a user