Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/Dockerfile-swh-storage
FROM python:3 | FROM python:3 | ||||
RUN apt-get update | RUN apt-get update | ||||
RUN apt-get install -y libsystemd-dev | RUN apt-get install -y libsystemd-dev | ||||
WORKDIR /usr/local/src/ | WORKDIR /usr/local/src/ | ||||
COPY ./swh-storage/requirements*.txt ./swh-storage/ | COPY ./swh-storage/requirements*.txt ./swh-storage/ | ||||
RUN pip install -r ./swh-storage/requirements.txt -r ./swh-storage/requirements-swh.txt | RUN pip install jinja2 -r ./swh-storage/requirements.txt -r ./swh-storage/requirements-swh.txt | ||||
COPY ./swh-docker-dev/config/ /etc/softwareheritage/ | COPY ./swh-docker-dev/config/ /usr/local/share/softwareheritage/config/ | ||||
COPY . . | COPY . . | ||||
RUN pip install -e ./swh-storage/ | RUN pip install -e ./swh-storage/ | ||||
RUN cat /etc/softwareheritage/storage/storage.yml | COPY ./swh-docker-dev/container-entrypoint.py /usr/local/bin/ | ||||
ENTRYPOINT ["python", "-m", "swh.storage.api.server", "/etc/softwareheritage/storage/storage.yml"] | ENTRYPOINT ["/usr/local/bin/container-entrypoint.py", "swh.storage.api.server", "storage/storage.yml"] | ||||
EXPOSE 5002 | EXPOSE 5002 | ||||