source: OpenRLabs-Git/deploy/rlabs-docker/Dockerfile.uwsgi-python

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

Redirect docker https

  • Property mode set to 100644
File size: 929 bytes
Line 
1FROM python:3
2
3
4ENV TZ=Europe/Madrid
5RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
6
7RUN groupadd -r openrlabs && useradd -r -g openrlabs openrlabs
8
9
10ADD ./web2py-rlabs /var/www/web2py
11ADD ./openrlabs_init.cfg /var/www/web2py/setup_init.cfg
12ADD ./uwsgi-python/uwsgi-web2py.ini /etc/uwsgi/sites/web2py.ini
13ADD ./web2py-rlabs/applications/rlabs/scripts/clear_fs_sessions.sh /etc/cron.daily/clear_fs_sessions
14
15RUN chmod -R 777 /var/www/web2py/logs
16RUN chmod -R 777 /var/www/web2py/applications/rlabs/sessions
17
18
19
20
21WORKDIR /home/openrlabs
22
23RUN chown -R openrlabs:openrlabs /home/openrlabs
24
25RUN apt-get update &&  apt-get install -y \
26        libldap-dev \
27        libsasl2-dev
28
29USER openrlabs
30
31COPY ./uwsgi-python/requirements.txt .
32
33RUN pip install --upgrade pip
34
35RUN pip install --no-cache-dir -r requirements.txt
36
37CMD ["/home/openrlabs/.local/bin/uwsgi", "--ini", "/etc/uwsgi/sites/web2py.ini", "--die-on-term"]
38
Note: See TracBrowser for help on using the repository browser.