Spaces:
Sleeping
Sleeping
env
Browse files4 unmodified lines5678910111213141516171819202122232425264 unmodified lines# Install dependenciesRUN pip install --no-cache --upgrade -r /requirements.txt# Set up a new user named "user" with user ID 1000RUN useradd -m -u 1000 user# Switch to the "user" userUSER user# Corrected: Define environment variables separatelyENV HOME=/home/userENV PATH=/home/user/.local/bin:$PATH# Set the working directory to the user's home directoryWORKDIR $HOME/app# Copy the current directory contents into the container at $HOME/app setting the owner to the userCOPY --chown=user . $HOME/app# Start the applicationCMD ["uvicorn", "backend.api.app:app", "--host", "0.0.0.0", "--port", "7860"]4 unmodified lines56789104 unmodified lines# Install dependenciesRUN pip install --no-cache --upgrade -r /requirements.txt# Start the applicationCMD ["uvicorn", "backend.api.app:app", "--host", "0.0.0.0", "--port", "7860"]
Dockerfile-16