waiverdb/Dockerfile
2017-11-06 16:30:17 -05:00

23 lines
826 B
Docker

FROM registry.fedoraproject.org/fedora:25
MAINTAINER "Dan Callaghan" <dcallagh@redhat.com>
ENV NAME=waiverdb VERSION=0 RELEASE=6
LABEL com.redhat.component="$NAME" \
name="$FGC/$NAME" \
version="$VERSION" \
release="$RELEASE.$DISTTAG" \
summary="Service for waiving results in ResultsDB" \
usage="docker run -p 8080:8080 -v waiverdb-config:/etc/waiverdb:ro waiverdb" \
url="https://pagure.io/waiverdb"
RUN dnf -y install --setopt=tsflags=nodocs \
python-gunicorn \
python-psycopg2 \
waiverdb \
&& dnf -y clean all
COPY README.md /README.md
# Make sure fedmsg can write its CRL.
RUN chmod 777 /var/run/fedmsg/
# Declare a user so that fedmsg.publish works.
ENV USER=openshift
USER 1001
EXPOSE 8080
ENTRYPOINT gunicorn --bind 0.0.0.0:8080 --access-logfile=- waiverdb.wsgi:app