forked from fedora-infra/fasjson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (33 loc) · 964 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
FROM quay.io/fedora/fedora:39
LABEL \
name="fasjson" \
vendor="Fedora Infrastructure" \
license="GPLv3+"
ENV HOME=/opt
RUN dnf install -y \
openldap-clients \
vim \
git \
ipa-client \
gcc \
redhat-rpm-config \
python-devel \
krb5-devel \
openldap-devel \
httpd \
mod_auth_gssapi \
mod_session \
policycoreutils-python-utils \
python3-mod_wsgi \
python3-pip && \
dnf autoremove -y && \
dnf clean all -y
RUN python3 -m venv /opt/venv
RUN /opt/venv/bin/pip install poetry
RUN /opt/venv/bin/poetry config virtualenvs.create false
COPY ./ /opt/fasjson
RUN cd /opt/fasjson && /opt/venv/bin/poetry install --only main
RUN rm -f /etc/krb5.conf && ln -sf /etc/krb5/krb5.conf /etc/krb5.conf && \
rm -f /etc/openldap/ldap.conf && ln -sf /etc/ipa/ldap.conf /etc/openldap/ldap.conf
EXPOSE 8080
ENTRYPOINT bash /opt/fasjson/deploy/start.sh