main
Last change
on this file was
bef6a5f,
checked in by David Fuertes <dfuertes@…>, 4 years ago
|
Redirect docker https
|
-
Property mode set to
100644
|
File size:
929 bytes
|
Line | |
---|
1 | FROM python:3 |
---|
2 | |
---|
3 | |
---|
4 | ENV TZ=Europe/Madrid |
---|
5 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
---|
6 | |
---|
7 | RUN groupadd -r openrlabs && useradd -r -g openrlabs openrlabs |
---|
8 | |
---|
9 | |
---|
10 | ADD ./web2py-rlabs /var/www/web2py |
---|
11 | ADD ./openrlabs_init.cfg /var/www/web2py/setup_init.cfg |
---|
12 | ADD ./uwsgi-python/uwsgi-web2py.ini /etc/uwsgi/sites/web2py.ini |
---|
13 | ADD ./web2py-rlabs/applications/rlabs/scripts/clear_fs_sessions.sh /etc/cron.daily/clear_fs_sessions |
---|
14 | |
---|
15 | RUN chmod -R 777 /var/www/web2py/logs |
---|
16 | RUN chmod -R 777 /var/www/web2py/applications/rlabs/sessions |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | WORKDIR /home/openrlabs |
---|
22 | |
---|
23 | RUN chown -R openrlabs:openrlabs /home/openrlabs |
---|
24 | |
---|
25 | RUN apt-get update && apt-get install -y \ |
---|
26 | libldap-dev \ |
---|
27 | libsasl2-dev |
---|
28 | |
---|
29 | USER openrlabs |
---|
30 | |
---|
31 | COPY ./uwsgi-python/requirements.txt . |
---|
32 | |
---|
33 | RUN pip install --upgrade pip |
---|
34 | |
---|
35 | RUN pip install --no-cache-dir -r requirements.txt |
---|
36 | |
---|
37 | CMD ["/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.