-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (20 loc) · 866 Bytes
/
Dockerfile
File metadata and controls
29 lines (20 loc) · 866 Bytes
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
FROM dockerhub-pub.camara.leg.br/labhacker/alpine-python3-nodejs:1.0.0
ENV BUILD_PACKAGES postgresql-dev postgresql-client jpeg-dev \
zlib-dev gettext libffi-dev
RUN apk add --update --no-cache $BUILD_PACKAGES
RUN mkdir -p /var/labhacker/wikilegis
ADD ./config/etc/cron.d/wikilegis /etc/cron.d/wikilegis
RUN chmod 0644 /etc/cron.d/wikilegis
ADD . /var/labhacker/wikilegis
WORKDIR /var/labhacker/wikilegis
ADD ./config/plugins.json /var/labhacker/wikilegis/wikilegis/.plugins
RUN pip3 install -U pip && \
pip3 install -r requirements.txt psycopg2==2.8.6 gunicorn && \
pip3 install git+https://github.com/tenhodito/pygov-br.git roman==2.0.0 && \
rm -r /root/.cache
RUN npm install
WORKDIR /var/labhacker/wikilegis/wikilegis
RUN python3 manage.py bower_install --allow-root && \
python3 manage.py compilemessages
EXPOSE 8000
CMD ./start.sh