FROM python:3.10 RUN useradd -m -u 1000 user USER user WORKDIR /app COPY --chown=user . /app ENV PATH="/home/user/.local/bin:${PATH}" RUN pip install --upgrade pip RUN pip install -r requirements.txt COPY --chown=user . . RUN ls -al /app CMD ["python", "-m", "FileStream"]