Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions nginx/1.13/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM nginx:1.13
MAINTAINER Juan Alonso <juan.jalogut@gmail.com>

ARG UID=1000
ARG GID=1000

RUN apt-get update \
&& apt-get install -y sudo \
&& rm -rf /var/lib/apt/lists/*

RUN groupadd -g 1000 app \
&& useradd -g 1000 -u 1000 -d /var/www -s /bin/bash app
RUN groupadd -g $GID app \
&& useradd -g $GID -u $UID -d /var/www -s /bin/bash app
RUN touch /var/run/nginx.pid
RUN mkdir /sock
RUN chown -R app:app /var/cache/nginx/ /var/run/nginx.pid /sock
Expand Down
6 changes: 6 additions & 0 deletions node-php/node8-php7.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM node:8

ARG UID=1000
ARG GID=1000

RUN apt-get update -y
RUN npm install -g grunt-cli && npm install -g bower

Expand All @@ -23,6 +26,9 @@ RUN apt-get update && \
php7.1-pdo-mysql \
&& apt-get clean

RUN usermod -u $UID app \
&& groupmod -g $GID app

RUN mkdir -p /home/app \
&& usermod -d /home/app -l app node \
&& chown -R app /home/app
Expand Down
7 changes: 5 additions & 2 deletions php/7.1-fpm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM php:7.1-fpm
MAINTAINER Fabio Righi <fabio@onestic.com>

ARG UID=1000
ARG GID=1000

RUN apt-get update && apt-get install -y \
cron \
git \
Expand Down Expand Up @@ -60,8 +63,8 @@ RUN curl -sS -O https://files.magerun.net/n98-magerun2-latest.phar \
&& chmod +x ./n98-magerun2-latest.phar \
&& mv ./n98-magerun2-latest.phar /usr/local/bin/n98-magerun2

RUN groupadd -g 1000 app \
&& useradd -g 1000 -u 1000 -d /var/www -s /bin/bash app
RUN groupadd -g $GID app \
&& useradd -g $GID -u $UID -d /var/www -s /bin/bash app

COPY conf/www.conf /usr/local/etc/php-fpm.d/
COPY conf/php.ini /usr/local/etc/php/
Expand Down