social-agent / Dockerfile
google-labs-jules[bot]
feat: Add Streamlit UI, Dockerfile, and HF Spaces config
c987214
raw
history blame contribute delete
697 Bytes
# Use the official Python 3.10 image from DockerHub
FROM python:3.10-slim
# Set the working directory
WORKDIR /app
# Copy the requirements file and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . .
# Expose the default port for Streamlit and HuggingFace Spaces
EXPOSE 7860
# Create a non-root user for HuggingFace Spaces (required by HF)
RUN useradd -m -u 1000 user
USER user
# Define environment variables
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
STREAMLIT_SERVER_PORT=7860 \
STREAMLIT_SERVER_ADDRESS=0.0.0.0
# Start the Streamlit application
CMD ["streamlit", "run", "app.py"]