forked from erdem/django-map-widgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (23 loc) · 907 Bytes
/
Dockerfile
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
FROM python:3.6.4
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y libgeos-dev libgdal-dev
RUN apt-get install -y git-core gcc g++ make libffi-dev libssl-dev python3-dev build-essential libpq-dev libmemcached-dev curl libcairo2-dev
RUN apt-get install -y libtiff5-dev libjpeg-dev libfreetype6-dev webp zlib1g-dev pcre++-dev libpango1.0-dev
RUN apt-get install -y libev-dev
RUN apt-get install -y wget
RUN curl -sL https://deb.nodesource.com/setup_5.x | bashq
:/
RUN apt-get install -y nodejs
RUN pip install --upgrade pip
RUN pip install virtualenv
COPY conf/requirements-dev.txt /tmp/
RUN pip install -r /tmp/requirements-dev.txt
COPY package.json /data/
WORKDIR /data/
RUN npm install
ENV PATH /data/node_modules/.bin:$PATH
WORKDIR /django-map-widgets
COPY conf/web_entrypoint.sh /docker-entrypoint.sh
RUN ["chmod", "+x", "/docker-entrypoint.sh"]
ENTRYPOINT ["/docker-entrypoint.sh"]