#nginx
FROM nginx:alpine
RUN addgroup -g 1010 -S www-data && \
adduser -u 1010 -D -S -G www-data www-data && \
touch /var/run/nginx.pid && \
chown -R www-data:www-data /var/run/nginx.pid && \
chown -R www-data:www-data /var/cache/nginx
USER www-data
VOLUME /var/www
2019/02/06 13:28:34 [emerg] 1#1: getpwnam("www-data") failed in /etc/nginx/nginx.conf:1