-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
35 lines (22 loc) · 1.41 KB
/
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
33
34
35
FROM registry.gitlab.com/gisdev.io/ckan/ckan:dev-v2-9-gisdevio
USER root
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -qy crudini
ARG CKANEXT_SCHEMING_VERSION=handle-empty-multiple_checkbox # release-3.0.0
RUN ckan-pip3 --no-cache install git https://github.com/frafra/ckanext-scheming.git@${CKANEXT_SCHEMING_VERSION}
ARG CKANEXT_SPATIAL_VERSION=v2.0.0
RUN wget -q https://raw.githubusercontent.com/ckan/ckanext-spatial/${CKANEXT_SPATIAL_VERSION}/requirements.txt -O requirements-ckanext-spatial.txt && \
ckan-pip3 --no-cache install -r requirements-ckanext-spatial.txt && \
ckan-pip3 --no-cache install git https://github.com/ckan/ckanext-spatial.git@${CKANEXT_SPATIAL_VERSION}
RUN ckan-pip3 --no-cache install ckanext-geoview
COPY ckanext/ckanext-branding /usr/lib/ckan/venv/src/ckanext/ckanext-branding
RUN ckan-pip3 install -e /usr/lib/ckan/venv/src/ckanext/ckanext-branding
COPY ckanext/ckanext-schemas /usr/lib/ckan/venv/src/ckanext/ckanext-schemas
RUN ckan-pip3 install -e /usr/lib/ckan/venv/src/ckanext/ckanext-schemas
RUN ckan-pip3 install gunicorn
COPY --chmod= x entrypoint/custom-entrypoint.sh entrypoint/dev-entrypoint.sh /
ENV CKAN_INI=/etc/ckan/production.ini
USER ckan
RUN mkdir -p /var/lib/ckan/webassets/.webassets-cache
ENTRYPOINT ["/bin/bash", "/custom-entrypoint.sh"]
CMD ["gunicorn", "--chdir", "/usr/lib/ckan/venv/src/ckan", "wsgi:application", "-b", "0.0.0.0:5000"]