Changeset View
Changeset View
Standalone View
Standalone View
docker/Dockerfile
Show All 17 Lines | RUN export DEBIAN_FRONTEND=noninteractive && \ | ||||
rm -rf /var/lib/apt/lists/* | rm -rf /var/lib/apt/lists/* | ||||
RUN useradd -md /srv/softwareheritage -s /bin/bash swh | RUN useradd -md /srv/softwareheritage -s /bin/bash swh | ||||
USER swh | USER swh | ||||
RUN python3 -m venv /srv/softwareheritage/venv | RUN python3 -m venv /srv/softwareheritage/venv | ||||
ENV PATH="/srv/softwareheritage/venv/bin:${PATH}" | ENV PATH="/srv/softwareheritage/venv/bin:${PATH}" | ||||
RUN pip install --upgrade pip setuptools wheel | RUN pip install --upgrade pip setuptools wheel | ||||
RUN pip install gunicorn | RUN pip install gunicorn httpie | ||||
ARG CASS_DRIVER_NO_CYTHON | ARG CASS_DRIVER_NO_CYTHON | ||||
ENV CASS_DRIVER_NO_CYTHON ${CASS_DRIVER_NO_CYTHON} | ENV CASS_DRIVER_NO_CYTHON ${CASS_DRIVER_NO_CYTHON} | ||||
ARG CASS_DRIVER_BUILD_CONCURRENCY | ARG CASS_DRIVER_BUILD_CONCURRENCY | ||||
ENV CASS_DRIVER_BUILD_CONCURRENCY ${CASS_DRIVER_BUILD_CONCURRENCY:-1} | ENV CASS_DRIVER_BUILD_CONCURRENCY ${CASS_DRIVER_BUILD_CONCURRENCY:-1} | ||||
RUN pip install cassandra-driver | RUN pip install cassandra-driver | ||||
# Enforce installation of django 1 otherwise pip will choose django 2 when | # Enforce installation of django 1 otherwise pip will choose django 2 when | ||||
Show All 22 Lines |