From 9bb57d35909cf54a14e9cd731fc43e8986780bed Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Jan 11 2019 10:53:40 +0000 Subject: Add Dockerfile to build and run mdapi in Openshift Signed-off-by: Clement Verna --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d00f5db --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# This Dockerfile is used to build the mdapi service on Openshift +# mdapi.cfg configuration is managed by Openshift as a configmap +FROM registry.fedoraproject.org/fedora:latest + +LABEL maintainer "Clément Verna " + +EXPOSE 8080 + +RUN dnf -y install python3-aiohttp python3-werkzeug python3-requests python3-sqlalchemy python3-fedmsg + +USER 1001 +ENV MDAPI_CONFIG=/etc/mdapi/mdapi.cfg +COPY . /code +ENTRYPOINT ["/code/mdapi-run"]