source: OpenRLabs-Git/deploy/rlabs-docker/Dockerfile.cron-web2py

qndtest
Last change on this file was 840a9c5, checked in by David Fuertes <dfuertes@…>, 3 years ago

Añadida funcionalidad AJAX de chequeo status de los equipos en reserva en frontend.

  • Property mode set to 100644
File size: 574 bytes
Line 
1FROM python:3
2
3ENV TZ=Europe/Madrid
4RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
5
6RUN apt-get update &&  apt-get install -y \
7        cron \
8        libldap-dev \
9        libsasl2-dev
10
11RUN echo "* * * * * root /var/www/web2py/applications/rlabs/scripts/exec_bg_check.sh" >> /etc/crontab
12RUN echo "0 1 * * * root /var/www/web2py/applications/rlabs/scripts/clear_fs_sessions.sh" >> /etc/crontab
13
14
15COPY ./cron/requirements.txt .
16
17RUN pip install --upgrade pip
18
19RUN pip install --no-cache-dir -r requirements.txt
20
21
22CMD ["/usr/sbin/cron", "-f"]
Note: See TracBrowser for help on using the repository browser.