## Summary - Bump Docker base image from `python:3.12-slim` to `python:3.14-slim` - Fix entry form: Date defaults to today, Next Control Date to Date + 6 months - Constrain form inputs so they fit the left column width ## Test plan - [ ] `docker compose up -d --build` succeeds with Python 3.14 - [ ] Open `/entry` — Date is today, Next Control is ~6 months later - [ ] Changing Date updates Next Control - [ ] Form inputs no longer overflow the left card Reviewed-on: #1 Co-authored-by: Diaco Soltanpour <dyaco8464@yahoo.com> Co-committed-by: Diaco Soltanpour <dyaco8464@yahoo.com>
24 lines
543 B
Docker
24 lines
543 B
Docker
FROM python:3.14-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy project
|
|
COPY . .
|
|
|
|
# Collect static files
|
|
RUN python manage.py collectstatic --noinput
|
|
|
|
# Create data directory for SQLite
|
|
RUN mkdir -p /app/data
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["sh", "-c", "python manage.py migrate --noinput && python manage.py seed_products --skip-existing && gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 2 --timeout 120"]
|