Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4d1b0ec

Browse files
committed
try only removing composer
1 parent 3e8605b commit 4d1b0ec

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

‎Dockerfile

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ MAINTAINER ngineered <support@ngineered.co.uk>
44

55
ENV php_conf /etc/php7/php.ini
66
ENV fpm_conf /etc/php7/php-fpm.d/www.conf
7-
ENV composer_hash 61069fe8c6436a4468d0371454cf38a812e451a14ab1691543f25a9627b97ff96d8753d92a00654c21e2212a5ae1ff36
87

98
RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
109
sed -i -e "s/v3.4/edge/" /etc/apk/repositories && \
@@ -58,15 +57,11 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo
5857
mkdir -p /var/www/app && \
5958
mkdir -p /run/nginx && \
6059
mkdir -p /var/log/supervisor && \
61-
php7 -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
62-
php7 -r "if (hash_file('SHA384', 'composer-setup.php') === '${composer_hash}') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
63-
php7 composer-setup.php --install-dir=/usr/bin --filename=composer && \
64-
php7 -r "unlink('composer-setup.php');" && \
6560
pip install -U pip && \
6661
pip install -U certbot && \
6762
mkdir -p /etc/letsencrypt/webrootauth && \
6863
apk del gcc musl-dev linux-headers libffi-dev augeas-dev python-dev
69-
64+
7065
ADD conf/supervisord.conf /etc/supervisord.conf
7166

7267
# Copy our nginx config
@@ -109,22 +104,32 @@ RUN sed -i \
109104
ln -s /etc/php7/php.ini /etc/php7/conf.d/php.ini && \
110105
find /etc/php7/conf.d/ -name "*.ini" -exec sed -i -re 's/^(\s*)#(.*)/1円;2円/g' {} \;
111106

107+
# Install/setup Python deps
108+
RUN pip install requests
109+
110+
# Install WP-CLI
111+
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
112+
RUN chmod +x wp-cli.phar
113+
RUN sudo mv wp-cli.phar /usr/local/bin/wp
112114

113115
# Add Scripts
114116
ADD scripts/start.sh /start.sh
115117
ADD scripts/pull /usr/bin/pull
116118
ADD scripts/push /usr/bin/push
117119
ADD scripts/letsencrypt-setup /usr/bin/letsencrypt-setup
118120
ADD scripts/letsencrypt-renew /usr/bin/letsencrypt-renew
121+
ADD scripts/docker-hook /usr/bin/docker-hook
122+
ADD scripts/hook-listener /usr/bin/hook-listener
123+
124+
# Setup permissions
119125
RUN chmod 755 /usr/bin/pull && chmod 755 /usr/bin/push && chmod 755 /usr/bin/letsencrypt-setup && chmod 755 /usr/bin/letsencrypt-renew && chmod 755 /start.sh
126+
RUN chmod +x /usr/bin/docker-hook
127+
RUN chmod +x /usr/bin/hook-listener
120128

121129
# copy in code
122130
ADD src/ /var/www/html/
123-
ADD errors/ /var/www/errors
124-
125-
VOLUME /var/www/html
126131

127-
EXPOSE 443 80
132+
EXPOSE 443 80 8555
128133

129134
#CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
130-
CMD ["/start.sh"]
135+
CMD ["/start.sh"]

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /