forked from ccnmtl/footprints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (27 loc) · 778 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
29
30
FROM ccnmtl/django.base
RUN apt-get update && apt-get install -y \
build-essential \
gdal-bin \
libspatialite-dev \
libsqlite3-dev \
libxml2-dev \
libxslt1-dev \
python-dev \
python-pysqlite2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# install node stuff
COPY package.json /node/
RUN cd /node && npm install && touch /node/node_modules/sentinal
# build virtualenv and run tests
ADD wheelhouse /wheelhouse
RUN /ve/bin/pip install --no-index -f /wheelhouse -r /wheelhouse/requirements.txt \
&& rm -rf /wheelhouse && touch /ve/sentinal
WORKDIR /app
COPY . /app/
RUN VE=/ve/ MANAGE="/ve/bin/python manage.py" NODE_MODULES=/node/node_modules/ make
EXPOSE 8000
ADD docker-run.sh /run.sh
ENV APP footprints
ENTRYPOINT ["/run.sh"]
CMD ["run"]