15 lines
374 B
Docker
15 lines
374 B
Docker
FROM python:3.12-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libsqlcipher-dev sqlcipher gcc python3-dev && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY . .
|
|
|
|
RUN mkdir -p /data
|
|
EXPOSE 8765
|
|
|
|
CMD ["gunicorn", "-b", "0.0.0.0:8765", "--timeout", "120", "app:app"] |