Prune unverified accounts
This commit is contained in:
@@ -14,6 +14,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
python3-dev \
|
||||
postgresql-client \
|
||||
cron \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -35,6 +36,12 @@ RUN pip install gunicorn==21.2.0
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Setup cron job for cleanup
|
||||
COPY docker-cron /etc/cron.d/cleanup-cron
|
||||
RUN chmod 0644 /etc/cron.d/cleanup-cron && \
|
||||
crontab /etc/cron.d/cleanup-cron && \
|
||||
touch /var/log/cron.log
|
||||
|
||||
# Create the SQLite database directory with proper permissions
|
||||
RUN mkdir -p /app/instance && chmod 777 /app/instance
|
||||
|
||||
|
||||
Reference in New Issue
Block a user