Commit 0c20778b authored by Pablo Panero's avatar Pablo Panero
Browse files

docker: update docker file to use from cern-search-rest-api-base

parent 1276f5e4
# -*- coding: utf-8 -*-
# Use CentOS7:
FROM inveniosoftware/centos7-python:3.6
ARG build_devel
ENV DEVEL=$build_devel
# Install pre-requisites
RUN yum update -y && \
yum install -y \
gcc \
openssl \
openldap-devel \
# CERN Search installation
# Install dependencies globally
RUN pipenv install --system --deploy
# If env is development, install development dependencies
RUN if [ -n "${DEVEL-}" ]; then pip install -r requirements-devel.txt; fi
# Install CSaS
RUN pip install -e .[all,postgresql,elasticsearch6]
RUN pip install -e .
# PID File for uWSGI
RUN touch /${WORKING_DIR}/src/
......@@ -32,7 +23,7 @@ RUN chmod 666 /${WORKING_DIR}/src/
RUN sh /${WORKING_DIR}/src/scripts/patch/
# Install UI
USER invenio
RUN invenio collect -v
RUN invenio webpack buildall
# Move static files to instance folder
......@@ -50,4 +41,6 @@ ENV UWSGI_PROCESSES ${UWSGI_PROCESSES:-2}
USER invenio
CMD ["/bin/sh", "-c", "uwsgi --module ${UWSGI_WSGI_MODULE} --socket${UWSGI_PORT} --master --processes ${UWSGI_PROCESSES} --threads ${UWSGI_THREADS} --stats /tmp/stats.socket"]
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment