forked from lucee/lucee-dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 866 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 866 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
26
27
28
29
30
31
32
33
FROM dcepler/lucee52:latest
MAINTAINER David Epler <dcepler@dcepler.net>
# Install nginx and supervisord
COPY nginx_signing.key /tmp/nginx_signing.key
RUN apt-key add /tmp/nginx_signing.key
RUN echo "deb http://nginx.org/packages/debian/ stretch nginx" >> /etc/apt/sources.list
RUN set -x && \
apt-get update && \
apt-get install --no-install-recommends --no-install-suggests -y \
nginx \
supervisor && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Copy default nginx config files
COPY nginx.conf /etc/nginx/
COPY default.conf /etc/nginx/conf.d/
# Copy supervisord.conf
COPY supervisord.conf /etc/supervisor/conf.d/
# Provide test page
RUN mkdir -p /var/www
COPY index.cfm /var/www/
ONBUILD RUN rm -rf /var/www/*
# Expose HTTP and HTTPS ports
EXPOSE 80 443
# Engage
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]