forked from fedora-infra/anitya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (32 loc) · 921 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM fedora
FROM fedora:24
ENV ANITYA_WEB_CONFIG /etc/anitya/config.py
# Updating libnghttp2 is required in Fedora 24
RUN dnf update -y libnghttp2 && \
dnf install -y \
python-flask \
python-flask-wtf \
python-flask-openid \
python-wtforms \
python-openid \
python-dateutil \
python-bunch \
python-straight-plugin \
python-setuptools \
python-sqlalchemy \
python-psycopg2 \
python-mysql \
fedmsg \
httpd \
mod_wsgi && \
dnf autoremove -y && \
dnf clean all -y
COPY ./ /opt/anitya/src
WORKDIR /opt/anitya/src
RUN mkdir /etc/anitya
RUN rm -f /etc/httpd/conf.d/welcome.conf
RUN cp /opt/anitya/src/files/docker_apache.conf /etc/httpd/conf.d/anitya.conf
RUN chown -R apache:apache /opt/anitya
RUN chmod +x /opt/anitya/src/files/docker.sh
EXPOSE 80
ENTRYPOINT /opt/anitya/src/files/docker.sh