Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/Dockerfile-swh-storage
- This file was added.
FROM python:3 | |||||
RUN apt-get update | |||||
RUN apt-get install -y libsystemd-dev | |||||
WORKDIR /usr/local/src/ | |||||
ardumont: When dust settled, maybe having this up to this comment centralized as a startup image would be… | |||||
Done Inline ActionsWhat do you mean? vlorentz: What do you mean? | |||||
Not Done Inline Actionsfirst, when i commented, it was from the start of the dockerfile to line 6 (not 7). ardumont: first, when i commented, it was from the start of the dockerfile to line 6 (not 7).
second, i… | |||||
Done Inline ActionsI thought about it, but there are just four trivial lines in common, I don't think it's worse the extra complexity. vlorentz: I thought about it, but there are just four trivial lines in common, I don't think it's worse… | |||||
COPY ./swh-storage/requirements*.txt ./swh-storage/ | |||||
RUN pip install -r ./swh-storage/requirements.txt -r ./swh-storage/requirements-swh.txt | |||||
COPY ./swh-docker-dev/config/ /etc/softwareheritage/ | |||||
COPY . . | |||||
RUN pip install -e ./swh-storage/ | |||||
RUN cat /etc/softwareheritage/storage/storage.yml | |||||
ENTRYPOINT ["python", "-m", "swh.storage.api.server", "/etc/softwareheritage/storage/storage.yml"] | |||||
EXPOSE 5002 | |||||
When dust settled, maybe having this up to this comment centralized as a startup image would be good?