-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
59 lines (45 loc) · 1.55 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
#
# Bowhead Dockerfile.
# use from the bowhead dir as
# `docker built -t bowhead bowhead/
# then `docker run bowhead` and read the output at the end.
# using `docker ps` and `docker exec -it {id} /bin/bash` to connect
#
FROM ej52/alpine-nginx-php
MAINTAINER joeldg@rxmg.com
RUN apk add --update
RUN apk add bzip2 curl vim wget git make gcc nasm git ack
RUN apk add nfs-utils jq py-pip libmcrypt-dev gnupg
RUN apk add curl make gcc nasm supervisor nfs-utils
RUN apk add redis screen
RUN apk add mariadb mariadb-client
RUN apk add make automake autoconf unzip patch patchutils g++ openssl-dev
RUN pecl channel-update pecl.php.net
RUN pecl install trader
RUN mkdir -p /var/www/html/
#install phpUnit & composer and add a healthcheck we can use in AWS
RUN \
wget "https://phar.phpunit.de/phpunit.phar" && \
chmod +x phpunit.phar && \
mv phpunit.phar /usr/local/bin/phpunit && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
echo "<?php phpinfo() ?>" > /var/www/html/healthcheck.php
ADD . /var/www
WORKDIR /var/www
COPY resources/etc/ /etc/
COPY resources/config_bowhead.sh /var/www/config_bowhead.sh
RUN chmod +x /var/www/config_bowhead.sh
# if this container is used in AWS you will need these for ECS
# you will also want the ports below
RUN \
pip install awscli && \
aws configure set preview.efs true
#RUN usermod -u 1000 www-data
EXPOSE 8080
EXPOSE 2049
EXPOSE 20048
#
# supervisord with nodaemon=true
# it sits and waits and keeps docker going.
#
CMD ["/var/www/config_bowhead.sh"]