Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files12345678910111213141516171819202122FROM python:3.9
# Create a non-root userRUN useradd -m -u 1000 userUSER userENV PATH="/home/user/.local/bin:$PATH"
# Set the working directoryWORKDIR /app
# Install Python dependenciesCOPY --chown=user ./requirements.txt requirements.txtRUN pip install --no-cache-dir --upgrade -r requirements.txt
# Expose port for Hugging FaceEXPOSE 7860
# Install IPython kernel for the current userRUN python3 -m ipykernel install --user
# Set CMD to run the kernel gateway on port 7860CMD ["jupyter", "kernelgateway", "--ip=0.0.0.0", "--port=7860", "--KernelGatewayApp.allow_origin='*'", "--JupyterWebsocketPersonality.list_kernels=True"]DockerfileAdded+22