Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-web/Dockerfile
FROM python:3.6 | FROM python:3.6 | ||||
RUN export DEBIAN_FRONTEND=noninteractive && \ | RUN export DEBIAN_FRONTEND=noninteractive && \ | ||||
apt-get update && apt-get upgrade -y && \ | apt-get update && apt-get upgrade -y && \ | ||||
apt-get install -y libsystemd-dev && \ | apt-get install -y libsystemd-dev && \ | ||||
apt-get clean && \ | apt-get clean && \ | ||||
rm -rf /var/lib/apt/lists/* | rm -rf /var/lib/apt/lists/* | ||||
RUN pip install swh-web | RUN pip install swh-web | ||||
RUN pip install psycopg2-binary # to make pip silent | RUN pip install psycopg2-binary # to make pip silent | ||||
RUN python3 -m swh.web.manage migrate | RUN python3 -m swh.web.manage migrate | ||||
COPY web.yml /etc/softwareheritage/web/ | |||||
COPY entrypoint.sh / | COPY entrypoint.sh / | ||||
ENTRYPOINT ["/entrypoint.sh"] | ENTRYPOINT ["/entrypoint.sh"] | ||||
EXPOSE 5004 | EXPOSE 5004 |