File size: 445 Bytes
09e451a
 
 
 
 
 
 
 
4f740eb
09e451a
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 PORT=7860
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /home/user/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user datainventor ./datainventor
COPY --chown=user app ./app
COPY --chown=user static ./static
WORKDIR /home/user/app/app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]