redrob / Dockerfile
TASMAYU's picture
Update Dockerfile
613fd48 verified
Raw
History Blame Contribute Delete
461 Bytes
FROM python:3.13-slim
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libomp-dev \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
CMD ["python", "app.py"]