rapid interations of server side app and firefox extension
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user