Skip to content

Instantly share code, notes, and snippets.

@dbjpanda
Created May 8, 2018 16:35
Show Gist options
  • Save dbjpanda/92156c26d096988b44fc71e0c72ebe3b to your computer and use it in GitHub Desktop.
Save dbjpanda/92156c26d096988b44fc71e0c72ebe3b to your computer and use it in GitHub Desktop.
FROM nginx:stable-alpine
RUN mkdir -p /var/www/site_name/public_html \
&& addgroup -g 82 -S www-data \
&& adduser -u 82 -D -S -G www-data www-data \
&& chown -R www-data:www-data /var/www/site_name/public_html
# && chmod -R 775 /var/www
COPY nginx.conf /etc/nginx/nginx.conf
COPY default.conf /etc/nginx/conf.d/default.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment