FROM poccio/exmod:1.0 # Set up a new user named "user" with user ID 1000 RUN useradd -m -u 1000 user # copy stanza and hf resources RUN cp -r /root/stanza_resources /root/.cache /home/user/ # change permissions RUN chmod -R 777 /root RUN chmod -R 777 /exmod RUN chmod -R 777 /home/user/ # Switch to the "user" user USER user # Set home to the user's home directory ENV HOME=/home/user \ PATH=/root/miniconda3/bin:/home/user/.local/bin:$PATH # setup conda RUN conda init bash WORKDIR /exmod CMD ["bash", "-c", "source /root/miniconda3/etc/profile.d/conda.sh && conda activate exmod && PYTHONPATH=$(pwd) streamlit run src/scripts/hf_space.py --server.port 7860 --server.headless true"]