sbv2 / Dockerfile
tuna2134's picture
Update Dockerfile
6ac8ff4 verified
raw
history blame contribute delete
365 Bytes
FROM python:3.12
RUN useradd -m -u 1000 user
USER user
WORKDIR /home/user/app
COPY --chown=user requirements.txt .
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/home/user/.cargo/bin:${PATH}"
RUN ls -la /home/user/.cargo
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
CMD ["python3", "app.py"]