FROM nginx:alpine LABEL description="Static OpenPGP public key and Web Key Directory server" RUN rm -f /etc/nginx/conf.d/default.conf \ && mkdir -p /usr/share/nginx/html/keys /usr/share/nginx/html/.well-known/openpgpkey COPY nginx.conf /etc/nginx/conf.d/default.conf RUN chown -R nginx:nginx /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]