Spaces:
Sleeping
Sleeping
env
Browse files4 unmodified lines56789101112131415161718192021222389104 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"]
Dockerfile-16