bodymeasure / Dockerfile
carsten12's picture
Update Dockerfile
8aece25 verified
Raw History Blame Contribute Delete
427 Bytes
FROM python:3.10-slim
# Set working directory
WORKDIR /SMPL-Anthropometry
# Install build dependencies
RUN apt-get update && apt-get install -y build-essential git && rm -rf /var/lib/apt/lists/*
# Copy and install requirements
COPY requirements.txt .
RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt
# Copy all source code
COPY . .
# Run the Flask app on port 7860
CMD ["python", "app.py"]