Spaces:
Runtime error
Runtime error
FROM tiangolo/uwsgi-nginx:python3.10 | |
RUN chown -R 1000 /app /etc/nginx /usr/local/lib/python3.10/site-packages /usr/local/bin /var/log | |
# Set up a new user named "user" with user ID 1000 | |
RUN useradd -m -u 1000 user | |
# Switch to the "user" user | |
USER user | |
# Set home to the user's home directory | |
ENV HOME=/home/user \ | |
PATH=/home/user/.local/bin:$PATH | |
# Install Python dependencies and install autoagents | |
RUN git clone https://github.com/LinkSoul-AI/AutoAgents autoagents && \ | |
cd autoagents && \ | |
pip install -r requirements.txt --user && \ | |
python setup.py install && \ | |
pip cache purge && \ | |
cp docker/prestart.sh /app/prestart.sh && \ | |
cp docker/autoagents.conf /etc/nginx/conf.d/autoagents.conf | |
USER root | |
EXPOSE 7860 |