product-classify / Dockerfile
Abhishek7356
creating new projects fro product categorise
7c16e73
raw
history blame contribute delete
398 Bytes
FROM python:3.10
RUN useradd -m -u 1000 user
USER user
WORKDIR /app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy your app and model files
COPY --chown=user ./src ./src
COPY --chown=user ./models ./models
COPY --chown=user ./templates ./templates
EXPOSE 7860
CMD ["python", "-m", "uvicorn", "src.api:app", "--host", "0.0.0.0", "--port", "7860"]