forked from elpaso/qgis-feed
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile.production
29 lines (23 loc) · 1.21 KB
/
Dockerfile.production
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 python:3.8-slim
ENV PYTHONUNBUFFERED 1
RUN echo "Installing GDAL dependencies" && \
apt-get update && apt install -y libgdal-dev wait-for-it && \
echo "Install C library for geoip2" && \
apt-get install -y libmaxminddb0 libmaxminddb-dev mmdb-bin
RUN mkdir /code
WORKDIR /code
COPY REQUIREMENTS.txt /code/
COPY REQUIREMENTS_PRODUCTION.txt /code/
RUN pip install -r REQUIREMENTS_PRODUCTION.txt
RUN apt-get update && apt-get install -y curl && curl -LJO https://github.com/P3TERX/GeoLite.mmdb/raw/download/GeoLite2-City.mmdb && \
mkdir /var/opt/maxmind && \
mv GeoLite2-City.mmdb /var/opt/maxmind/GeoLite2-City.mmdb
# Install NodeJS and bulma css webpack
RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends wget && \
wget --no-check-certificate https://deb.nodesource.com/setup_18.x -O /tmp/node.sh && bash /tmp/node.sh && \
apt-get -qq update && apt-get -qq install -y nodejs build-essential
COPY . /code/
RUN npm install -g [email protected] && npm install -g [email protected] && npm install -g [email protected] && npm install
COPY ./settings_docker_production.py /code/qgisfeedproject/qgisfeedproject/settings_local.py
COPY ./entrypoint_production.sh /code/
ENV GEOIP_PATH=/var/opt/maxmind/