forked from mendersoftware/mender-api-gateway-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (17 loc) · 742 Bytes
/
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
FROM openresty/openresty:1.13.6.2-0-alpine
# forward request and error logs to docker log collector
RUN mkdir -p /var/log/nginx && \
ln -sf /dev/stdout /var/log/nginx/access.log && \
ln -sf /dev/stderr /var/log/nginx/error.log
RUN apk update && \
apk add bind-tools
EXPOSE 443
COPY nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
# copy optionally included config files
# create placeholder dir where they'll be linked
COPY tenantadm.nginx.conf /usr/local/openresty/nginx/conf/tenantadm.nginx.conf
RUN mkdir -p /usr/local/openresty/nginx/conf/optional/endpoints
COPY entrypoint.sh /entrypoint.sh
COPY reload-when-hosts-changed /reload-when-hosts-changed
RUN mkdir -p /data/nginx/cache/ui
ENTRYPOINT ["/entrypoint.sh"]