-
Notifications
You must be signed in to change notification settings - Fork 50
/
Dockerfile.nginx
33 lines (25 loc) · 707 Bytes
/
Dockerfile.nginx
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
ARG LUCEE_IMAGE
FROM ${LUCEE_IMAGE}
ARG TARGETPLATFORM
ARG BUILDPLATFORM
# Install nginx and supervisord
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/nginx.conf /etc/nginx/
COPY nginx/default.conf /etc/nginx/conf.d/
# Copy supervisord.conf
COPY nginx/supervisord.conf /etc/supervisor/conf.d/
# Provide test page
RUN mkdir -p /var/www
COPY www/ /var/www/
ONBUILD RUN rm -rf /var/www/*
# Expose HTTP and HTTPS ports
EXPOSE 80 443
# Engage
CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]