-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (50 loc) · 1.32 KB
/
Copy pathDockerfile
File metadata and controls
56 lines (50 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM ubuntu:latest
MAINTAINER Miguel Vilchis "mvilchis@ciencias.unam.mx"
################# Enviroment variables #################
ENV C_FORCE_ROOT True
ENV UWSGI_WSGI_FILE=temba/wsgi.py
ENV UWSGI_HTTP=:8000
ENV UWSGI_MASTER=1
ENV UWSGI_WORKERS=8
ENV UWSGI_HARAKIRI=20
ENV LANG C.UTF-8
ENV TZ=America/Los_Angeles
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
################# Work directory #################
RUN mkdir rapidpro
WORKDIR /rapidpro
ADD . /rapidpro
RUN mkdir /var/log/celery
################# Install packages #################
COPY ./geolibs.sh /
RUN apt-get update && \
apt-get install -y --no-install-recommends \
bash \
patch \
git \
gcc \
g++ \
make \
libc-dev \
musl-dev \
libpng-dev \
libxslt-dev \
libxml2-dev \
libffi-dev \
ncurses-dev \
nodejs \
npm \
nodejs-legacy \
python \
python-setuptools \
python-pip \
python-dev \
build-essential \
vim \
wget \
libpq-dev \
file \
lib32ncurses5-dev \
libgeos-dev && \
sh /geolibs.sh
CMD ["bash"]