-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
31 lines (24 loc) · 893 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
28
29
30
31
FROM nginx:1.24
LABEL org.opencontainers.image.authors="containers@hausgold.de"
# Install all required packages
RUN apt-get update -yqqq && \
apt-get install -y \
avahi-daemon avahi-discover avahi-utils \
libnss-mdns supervisor curl gnupg
# Install nodejs 16
RUN curl -sL https://deb.nodesource.com/setup_16.x \
| bash - && apt-get install -y nodejs
# Install our own resolver
COPY resolver/* /opt/resolver/
RUN cd /opt/resolver && npm install
# Configure nginx as dynamic proxy
COPY config/nginx/default.conf /etc/nginx/conf.d/default.conf
COPY config/nginx/502.html /usr/share/nginx/html/
# Copy custom scripts
COPY config/entrypoint config/*.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/*
# Configure supervisord
COPY config/supervisor/* /etc/supervisor/conf.d/
RUN mkdir -p /var/log/supervisor
# Define the command to run per default
CMD ["/usr/local/bin/entrypoint"]