forked from containerbuildsystem/cachito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile-api
33 lines (32 loc) · 884 Bytes
/
Dockerfile-api
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
FROM fedora:32
LABEL maintainer="Factory 2.0"
WORKDIR /src
RUN dnf -y install \
--setopt=deltarpm=0 \
--setopt=install_weak_deps=false \
--setopt=tsflags=nodocs \
httpd \
mod_auth_gssapi \
mod_ssl \
python3-celery \
python3-flask \
python3-flask-login \
python3-flask-migrate \
python3-flask-sqlalchemy \
python3-GitPython \
python3-mod_wsgi \
python3-packaging \
python3-pip \
python3-psycopg2 \
python3-requests \
python3-requests-kerberos \
python3-semver \
python3-setuptools \
&& dnf clean all
COPY . .
COPY ./docker/cachito-httpd.conf /etc/httpd/conf/httpd.conf
# All the requirements except pyarn should already be installed
RUN pip3 install "pyarn @ git+https://github.com/containerbuildsystem/pyarn.git" && \
pip3 install . --no-deps
EXPOSE 8080
CMD ["/usr/sbin/httpd", "-DFOREGROUND"]