This repository has been archived on 2026-05-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GallerySubscriber/backend/Dockerfile.dev
T
2026-01-24 22:52:51 -05:00

25 lines
530 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY . .
# Create data directories
RUN mkdir -p /data/downloads /data/config /data/cookies
EXPOSE 8080
# Development mode with reload
CMD ["hypercorn", "app.main:app", "--bind", "0.0.0.0:8080", "--reload"]