Created
June 17, 2022 18:48
-
-
Save firecentaur/cbf405334b0651ba2515013df122f3c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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