Skip to content

Instantly share code, notes, and snippets.

@firecentaur
Created June 17, 2022 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save firecentaur/cbf405334b0651ba2515013df122f3c7 to your computer and use it in GitHub Desktop.
Save firecentaur/cbf405334b0651ba2515013df122f3c7 to your computer and use it in GitHub Desktop.
FROM nginx:stable-alpine
ARG UID
ARG GID
ENV UID=${UID}
ENV GID=${GID}
RUN delgroup dialout
RUN addgroup -g ${GID} --system laravel
RUN adduser -G laravel --system -D -s /bin/sh -u ${UID} laravel
RUN sed -i "s/user nginx/user laravel/g" /etc/nginx/nginx.conf
ADD ./nginx/default.conf /etc/nginx/conf.d/
RUN mkdir -p /var/www/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment