forked from tmdoit-zz/docker
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
53 lines (44 loc) · 1.28 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
# Base Image
FROM amazonlinux:2018.03
CMD ["/bin/bash"]
# Maintainer
MAINTAINER ProcessMaker CloudOps <[email protected]>, tmdoit <[email protected]>
# Extra
LABEL version="3.3.10"
LABEL description="ProcessMaker 3.3.10 Docker Container."
# Declare ARGS and ENV Variables
ARG URL
ENV URL $URL
# Initial steps
RUN yum clean all && yum install epel-release -y && yum update -y
RUN cp /etc/hosts ~/hosts.new && sed -i "/127.0.0.1/c\127.0.0.1 localhost localhost.localdomain `hostname`" ~/hosts.new && cp -f ~/hosts.new /etc/hosts
# Required packages
RUN yum install \
wget \
vim \
nano \
sendmail \
nginx \
php71-fpm \
php71-opcache \
php71-gd \
php71-mysqlnd \
php71-soap \
php71-mbstring \
php71-ldap \
php71-mcrypt \
-y
# Download ProcessMaker OpenSource
RUN wget -O "/tmp/processmaker-3.3.10.tar.gz" \
"https://sourceforge.net/projects/processmaker/files/ProcessMaker/3.3.10/processmaker-3.3.10-community.tar.gz"
# Copy configuration files
COPY processmaker-fpm.conf /etc/php-fpm.d
RUN mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.bk
COPY nginx.conf /etc/nginx
COPY processmaker.conf /etc/nginx/conf.d
# NGINX Ports
EXPOSE 80
# Docker entrypoint
COPY docker-entrypoint.sh /bin/
RUN chmod a+x /bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]