FROM python:3.13-slim RUN pip install --no-cache-dir gunicorn WORKDIR /rifalto COPY requirements.txt /rifalto RUN pip install --root-user-action ignore --no-cache-dir -r requirements.txt RUN rm requirements.txt EXPOSE 5000 COPY start.sh . COPY rifaserver ./rifaserver COPY migrations ./migrations RUN chmod +x start.sh ENV FLASK_APP=rifaserver.app ENV GUNICORN_BIND=:5000 ENV PYTHONUNBUFFERED=1 CMD ["./start.sh"]