Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-deposit/Dockerfile
FROM python:3 | 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 postgresql-client && \ | apt-get install -y libsystemd-dev postgresql-client && \ | ||||
apt-get clean && \ | apt-get clean && \ | ||||
rm -rf /var/lib/apt/lists/* | rm -rf /var/lib/apt/lists/* | ||||
RUN pip install swh-deposit gunicorn | RUN pip install swh-deposit gunicorn | ||||
RUN pip install psycopg2-binary # to make pip silent | RUN pip install psycopg2-binary # to make pip silent | ||||
COPY server.yml /etc/softwareheritage/deposit/ | COPY server.yml /etc/softwareheritage/deposit/ | ||||
COPY private.yml /etc/softwareheritage/deposit/ | COPY private.yml /etc/softwareheritage/deposit/ | ||||
COPY entrypoint.sh / | COPY entrypoint.sh / | ||||
EXPOSE 5006 | EXPOSE 5006 | ||||
ENTRYPOINT ["/entrypoint.sh"] | ENTRYPOINT ["/entrypoint.sh"] |