nginx-proxy-manager/Dockerfile

40 lines
1007 B
Docker
Raw Normal View History

2018-07-30 02:44:50 -04:00
FROM jc21/nginx-proxy-manager-base:latest
2017-12-20 18:02:37 -05:00
2018-04-15 22:10:12 -04:00
MAINTAINER Jamie Curnow <jc@jc21.com>
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
2017-12-20 18:02:37 -05:00
ENV SUPPRESS_NO_CONFIG_WARNING=1
ENV S6_FIX_ATTRS_HIDDEN=1
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf
2018-07-30 02:44:50 -04:00
# Nginx, Node and required packages should already be installed from the base image
2018-06-19 19:53:18 -04:00
2017-12-20 18:02:37 -05:00
# root filesystem
COPY rootfs /
# s6 overlay
2018-05-07 18:30:33 -04:00
RUN curl -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v1.21.4.0/s6-overlay-amd64.tar.gz" \
2017-12-20 18:02:37 -05:00
&& tar xzf /tmp/s6-overlay-amd64.tar.gz -C /
# App
ENV NODE_ENV=production
ADD dist /app/dist
ADD node_modules /app/node_modules
ADD src/backend /app/src/backend
ADD package.json /app/package.json
ADD knexfile.js /app/knexfile.js
2017-12-20 18:02:37 -05:00
# Volumes
2018-06-19 19:53:18 -04:00
VOLUME [ "/data", "/etc/letsencrypt" ]
2017-12-20 18:02:37 -05:00
CMD [ "/init" ]
# Ports
EXPOSE 80
EXPOSE 81
EXPOSE 443
EXPOSE 9876
2017-12-20 18:02:37 -05:00
HEALTHCHECK --interval=15s --timeout=3s CMD curl -f http://localhost:9876/health || exit 1