mastodon-collector/Dockerfile

21 lines
405 B
Text
Raw Permalink Normal View History

FROM python:3.12-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
libpq-dev gcc \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Create empty accounts file if it doesn't exist
RUN touch /app/accounts.txt
EXPOSE 5000
CMD ["python", "-m", "app.collector"]