Files
zebra-power/backend/Dockerfile
Bertrand Benjamin 13e6576ce3
Some checks failed
Build and Publish Docker Images / build-and-push (backend) (push) Has been cancelled
Build and Publish Docker Images / build-and-push (frontend) (push) Has been cancelled
fix: path relativity
2025-09-03 21:33:58 +02:00

26 lines
562 B
Docker

FROM python:3.13-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
wakeonlan \
iputils-ping \
curl \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install dependencies with uv
COPY requirements.txt .
RUN pip install --no-cache -r requirements.txt
# Copy application code
COPY app/ ./app/
# Create data directory for SQLite
RUN mkdir -p /app/data
EXPOSE 8000
# Production server without auto-reload
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]