-
Notifications
You must be signed in to change notification settings - Fork 131
/
Dockerfile
32 lines (23 loc) · 834 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
31
32
FROM python:3.7.7
# set appropriately if needed for your environment
ARG http_proxy
ARG https_proxy
ENV http_proxy $http_proxy
ENV https_proxy $https_proxy
ENV ALLOWED_HOST localhost
RUN apt-get update && apt-get -y upgrade
RUN apt-get -y install python-gdbm python-tk
RUN apt-get -y install binutils libproj-dev gdal-bin nodejs libnode-dev npm postgresql-client-common postgresql-client netcat
RUN npm install -g less
# RUN ln -s /usr/bin/nodejs /usr/bin/node
ADD . /usr/src/geoq/
WORKDIR /usr/src/geoq
RUN ls /usr/src/geoq
RUN pip install -r /usr/src/geoq/geoq/requirements.txt --proxy=$http_proxy
RUN dpkg -i ./geoq/tools/geographiclib_1.36-2_amd64.deb
RUN apt-get install -f
RUN mkdir -p /var/www/static/kml
RUN chmod 777 /var/www/static/kml
EXPOSE 8000
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]