docker-pdns/pdns-admin-static/Dockerfile

12 lines
422 B
Docker
Raw Permalink Normal View History

2018-11-07 22:27:04 +01:00
FROM nginx:1.14-alpine
2017-08-21 21:30:57 +02:00
RUN apk add --no-cache curl
RUN mkdir -p /opt/powerdns-admin \
&& curl -sSL https://git.0x97.io/0x97/powerdns-admin/repository/master/archive.tar.gz \
2017-08-21 21:30:57 +02:00
| tar -xzC /opt/powerdns-admin --strip 1 \
&& find /opt/powerdns-admin -path /opt/powerdns-admin/app/static -prune -o -type f -exec rm -f {} + \
&& chown -R root: /opt/powerdns-admin
COPY pdns-nginx.conf /etc/nginx/conf.d/default.conf