diff --git a/rootfs/Dockerfile b/rootfs/Dockerfile index d4537fb..ec56b03 100644 --- a/rootfs/Dockerfile +++ b/rootfs/Dockerfile @@ -5,7 +5,6 @@ MAINTAINER Keitaro Inc ENV APP_DIR=/srv/app ENV GIT_URL=https://github.com/ckan/ckan.git ENV GIT_BRANCH=release-v2.5.2 -ENV APP_WSGI=ckan.wsgi ENV CKAN_SITE_URL=http://localhost ENV CKAN__PLUGINS image_view text_view recline_view datastore datapusher envvars @@ -14,14 +13,14 @@ WORKDIR ${APP_DIR} # Install necessary packages to run CKAN RUN apk add --no-cache git \ gettext \ - postgresql-client \ - postgresql-dev \ python \ py-pip \ py-gunicorn # Temporary packages to build CKAN requirements RUN apk add --no-cache --virtual .build-deps \ + postgresql-client \ + postgresql-dev \ gcc \ musl-dev \ python-dev @@ -36,8 +35,9 @@ RUN mkdir ${APP_DIR}/src && cd ${APP_DIR}/src && \ pip install --no-cache-dir --upgrade -r requirements.txt && \ pip install --no-cache-dir html5lib==0.9999999 -# Remove temporary packages -RUN apk del .build-deps +# Remove temporary packages and files +RUN apk del .build-deps && \ + rm -rf ${APP_DIR}/src # Default Extensions RUN pip install --no-cache-dir git+https://github.com/okfn/ckanext-envvars.git#egg=ckanext-envvars