FROM nginx:alpine COPY uidocker/conf.d /etc/nginx/ COPY src/main/ui /var/www/royalpay COPY uidocker/upstream.conf.tpl /opt/upstream.conf.tpl RUN apk add gettext EXPOSE 80 CMD envsubst < /opt/upstream.conf.tpl > /etc/nginx/conf.d/upstream.conf && cat /etc/nginx/conf.d/upstream.conf && exec nginx -g 'daemon off;'