Changeset View
Changeset View
Standalone View
Standalone View
dockerfiles/swh-web/Dockerfile
- This file was added.
FROM python:3 | |||||
RUN export DEBIAN_FRONTEND=noninteractive && \ | |||||
apt-get update && apt-get upgrade -y && \ | |||||
apt-get install -y libsystemd-dev && \ | |||||
ardumont: If we don't use gunicorn3 in the end, this probably could go away. | |||||
apt-get clean && \ | |||||
rm -rf /var/lib/apt/lists/* | |||||
RUN pip install swh-web | |||||
RUN python3 -m swh.web.manage migrate | |||||
RUN pip install psycopg2-binary # to make pip silent | |||||
COPY web.yml /etc/softwareheritage/web/ | |||||
RUN cat /etc/softwareheritage/web/web.yml | |||||
COPY entrypoint.sh / | |||||
ENTRYPOINT ["/entrypoint.sh"] | |||||
Done Inline ActionsThis can be changed if i chmod +x entrypoint.sh directly the file and commit it. ardumont: This can be changed if i `chmod +x entrypoint.sh` directly the file and commit it. | |||||
EXPOSE 5004 |
If we don't use gunicorn3 in the end, this probably could go away.