Changeset View
Changeset View
Standalone View
Standalone View
docker/Dockerfile
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | RUN export DEBIAN_FRONTEND=noninteractive && \ | ||||
zstd && \ | zstd && \ | ||||
apt-get install -y --no-install-recommends \ | apt-get install -y --no-install-recommends \ | ||||
opam \ | opam \ | ||||
r-base-core \ | r-base-core \ | ||||
r-cran-jsonlite && \ | r-cran-jsonlite && \ | ||||
apt-get clean && \ | apt-get clean && \ | ||||
rm -rf /var/lib/apt/lists/* | rm -rf /var/lib/apt/lists/* | ||||
# install nix binaries that can be used by swh directory loader | |||||
RUN curl -L https://nixos.org/nix/install -o /tmp/nix_install | |||||
RUN sh /tmp/nix_install --daemon --no-channel-add --daemon-user-count 1 | |||||
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 httpie | RUN pip install gunicorn httpie | ||||
Show All 27 Lines |