-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
91 lines (74 loc) · 2.11 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
############################################################
# Dockerfile to run a Tactic Container
# Based on Rocky Linux 8 image
############################################################
FROM rockylinux:9
LABEL maintainer="Diego Cortassa <[email protected]>"
ENV REFRESHED_AT 2024-11-24
# Install locale (not included in centos docker image)
RUN dnf -y install glibc-langpack-*
RUN dnf -y update
#RUN apt-get install -y locales && \
# locale-gen C.UTF-8 && \
# /usr/sbin/update-locale LANG=C.UTF-8
# Setup a minimal env
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV HOME /root
ENV DEBUG FALSE
# set a better shell prompt
RUN echo 'export PS1="[\u@tactic-docker] \W # "' >> /root/.bash_profile
# Install dependecies
RUN dnf -y install epel-release
RUN dnf -y install \
httpd \
postgresql \
postgresql-server \
python39 \
unzip \
xz \
git-core \
ImageMagick
# Needed to build python-ldap
RUN dnf -y install gcc python-devel openldap-devel
RUN pip3 install \
psycopg2-binary \
pillow \
lxml \
pycryptodomex \
six \
pytz \
jaraco.functools \
requests \
python-ldap \
supervisor
# remove unneeded packages
RUN dnf -y remove \
cpp \
cyrus-sasl \
cyrus-sasl-devel \
glibc-devel \
glibc-headers \
isl \
kernel-headers \
libmpc \
libxcrypt-devel && \
dnf clean all
# add ffmpeg
RUN curl -L -O https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz && \
tar xf ffmpeg-release-amd64-static.tar.xz && \
cp ffmpeg-*-static/ffmpeg ffmpeg-*-static/ffprobe ffmpeg-*-static/qt-faststart /usr/local/bin/ && \
rm -rf ffmpeg-*-static*
# get Tactic source
RUN git clone -b 4.9 --depth 1 https://github.com/Southpaw-TACTIC/TACTIC.git
RUN cp TACTIC/src/install/apache/tactic.conf /etc/httpd/conf.d/
EXPOSE 80
# configure supervisord
RUN mkdir -p /var/log/supervisor && \
mkdir -p /etc/supervisor/conf.d/
ADD supervisord.conf /etc/supervisor/supervisord.conf
# copy start script
ADD bootstrap.sh /usr/local/bin/bootstrap.sh
# Start Tactic stack
CMD ["/usr/local/bin/bootstrap.sh"]