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