forked from hacklabr/timtec
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile-dev
42 lines (33 loc) · 1.3 KB
/
Dockerfile-dev
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
FROM python:2.7
MAINTAINER Fabio Montefuscolo <[email protected]>
MAINTAINER Moacir Moda <[email protected]>
# Libs para a geração do certificado
RUN apt-get update \
&& apt-get install -y libpq-dev libjpeg-dev libpng12-dev gettext \
&& apt-get install -y npm vim \
&& apt-get install -y postgresql-client
# Diretório onde o cursor deve estar
RUN mkdir -p /app
COPY . /app/timtec
WORKDIR /app/timtec
# gato para o node funcionar no debian
RUN ln -s /usr/bin/nodejs /usr/bin/node
# instalação das dependencias externas
RUN npm install -g phantomjs-prebuilt bower less
# Colocando o tema componentizado do IF
# COPY ../timtec-theme-if/ /app/timtec-theme-if
# Instalação das dependências do python
RUN mkdir -p /app/webfiles/static \
&& mkdir -p /app/webfiles/media \
&& pip install -r /app/timtec/requirements/production.txt \
&& pip install -r /app/timtec/requirements/local.txt \
&& pip install -r /app/timtec/requirements/test.txt
# Instalação das dependências do bower
RUN cd /app/timtec \
&& npm install \
&& node bower install \
&& node node_modules/grunt-cli/bin/grunt \
&& python /app/timtec/manage.py compilemessages
RUN export PYTHONPATH="/app/timtec:$PYTHONPATH"
EXPOSE 8000 8000
CMD ["python", "/app/timtec/manage.py", "runserver", "0.0.0.0:8000"]