-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·25 lines (16 loc) · 953 Bytes
/
Dockerfile
File metadata and controls
executable file
·25 lines (16 loc) · 953 Bytes
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
FROM webdevops/php-nginx:7.3 as abr-front-app
ARG CONSUL_TEMPLATE_VERSION=0.19.5
ENV DEBIAN_FRONTEND=noninteractive
COPY . /app
ADD https://releases.hashicorp.com/consul-template/${CONSUL_TEMPLATE_VERSION}/consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.zip /usr/bin/
RUN unzip /usr/bin/consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.zip && \
mv consul-template /usr/local/bin/consul-template && \
rm -rf /usr/bin/consul-template_${CONSUL_TEMPLATE_VERSION}_linux_amd64.zip && \
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
apt-get install -yq nodejs build-essential
RUN cp /app/docker/config/nginx/sites-enabled/app1.conf /opt/docker/etc/nginx/vhost.conf \
&& cp /app/docker/config/php/fpm/application.conf /opt/docker/etc/php/fpm/pool.d/application.conf
RUN bash /app/docker/build/clear.sh
EXPOSE 80
VOLUME ["/app/storage/logs", "/var/log/nginx", "/var/log/php"]
WORKDIR /app