twitter_cli/Dockerfile

24 lines
No EOL
470 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
jq \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for better caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create data and config directories
RUN mkdir -p /app/data /app/config
# Set executable permissions
RUN chmod +x main.py
CMD ["python", "main.py"]