Files
HabitForge-zepp/Dockerfile
T

21 lines
445 B
Docker

FROM python:3.10-slim
WORKDIR /app
# Install system dependencies for potential library compilation (bcrypt, cryptography)
RUN apt-get update && apt-get install -y \
build-essential \
libffi-dev \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Expose port
EXPOSE 8000
# Run commands
CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "8000"]