File size: 365 Bytes
6ac8ff4
70c7d97
cb55bf0
 
f23f30f
 
cb55bf0
 
 
70c7d97
cb55bf0
8f769cc
70c7d97
 
cb55bf0
189a8a0
70c7d97
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"]