asrdocker / Dockerfile
lwdgit's picture
feat: update
17bb7ec
raw
history blame
370 Bytes
FROM lwddc/paddlespeech
RUN useradd -m -u 1000 user
WORKDIR /app
ADD app.py requirements.txt /app
# RUN adduser --disabled-password --gecos '' --shell /bin/bash user
RUN echo 'root:root' | chpasswd
RUN usermod -g root user
RUN chown -R user:root /root/.cache /app
EXPOSE 7860
CMD ["python", "app.py"]
# sh -c "sleep 1; echo root" | script -qc 'su -c whoami - root'