ubuntu-sandbox-v2 / Dockerfile
likhonsheikh's picture
πŸš€ MINIMAL BUILD FIX: Use minimal Dockerfile with python:3.11-slim base
83ec3bc verified
raw
history blame contribute delete
606 Bytes
# Minimal Ubuntu Sandbox - Guaranteed Build
FROM python:3.11-slim
# Set working directory
WORKDIR /home/user/workspace
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
curl \
wget \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements_minimal.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Copy application
COPY app.py /home/user/workspace/app.py
COPY config.yaml /home/user/workspace/config.yaml
# Expose port
EXPOSE 7860
# Run the application
CMD ["python", "/home/user/workspace/app.py"]