-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
63 lines (48 loc) · 1.86 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# =============================================================================
#
# Perfumers Vault Pro Dockerfile
#
# =============================================================================
FROM quay.io/centos/centos:stream9-minimal
LABEL co.uk.globaldyne.component="perfumers-vault-container" description="Perfumers Vault container image" summary="Perfumers Vault container image" version="PRO" io.k8s.description="Init Container for Perfumers Vault PRO" io.k8s.display-name="Perfumers Vault Pro Container" io.openshift.tags="pvault,jb,perfumer,vault,jbpvault,PRO" name="globaldyne/pvault" maintainer="John Belekios"
ARG uid=100001
ARG gid=100001
RUN microdnf -y update
#A temp workaround to address microdnf module version conflicts
RUN microdnf -y module enable nginx:1.24
RUN microdnf -y module enable php:8.2
RUN microdnf --setopt=tsflags=nodocs -y install \
php \
php-mysqlnd \
php-gd \
php-mbstring \
php-fpm \
openssl \
mysql \
ncurses \
nginx
RUN sed -i \
-e 's~^;date.timezone =$~date.timezone = UTC~g' \
-e 's~^upload_max_filesize.*$~upload_max_filesize = 400M~g' \
-e 's~^post_max_size.*$~post_max_size = 400M~g' \
-e 's~^session.auto_start.*$~session.auto_start = 1~g' \
/etc/php.ini
ENV LANG=en_GB.UTF-8
ADD . /html
RUN if [ -f .git/COMMIT_EDITMSG ]; then \
cat .git/COMMIT_EDITMSG | sed -n 's/^\[\(.*\)\].*/\[\1\]/p' > /html/COMMIT; \
fi
ADD scripts/php-fpm/www.conf /etc/php-fpm.d/www.conf
ADD scripts/php-fpm/php-fpm.conf /etc/php-fpm.conf
ADD scripts/entrypoint.sh /usr/bin/entrypoint.sh
ADD scripts/nginx/nginx.conf /etc/nginx/nginx.conf
ADD scripts/reset_pass.sh /usr/bin/reset_pass.sh
RUN chmod +x /usr/bin/entrypoint.sh
RUN chmod +x /usr/bin/reset_pass.sh
RUN rm -rf /html/.git /html/.github
RUN microdnf clean all && rm -rf /var/cache/yum/*
WORKDIR /html
STOPSIGNAL SIGQUIT
USER ${uid}
EXPOSE 8000
ENTRYPOINT ["entrypoint.sh"]