This commit is contained in:
@@ -1,20 +1,14 @@
|
|||||||
FROM composer:latest
|
|
||||||
|
|
||||||
ARG USERNAME=laravel
|
ARG USERNAME=laravel
|
||||||
ARG USER_UID=1000
|
ARG USER_UID=1000
|
||||||
ARG USER_GID=$USER_UID
|
|
||||||
|
|
||||||
RUN apk add --no-cache nodejs npm zlib-dev libpng-dev \
|
FROM ubuntu:latest
|
||||||
&& npm install -g npm \
|
|
||||||
&& rm -rf /tmp/* /var/tmp/*
|
|
||||||
|
|
||||||
RUN docker-php-ext-install mysqli pdo pdo_mysql gd
|
|
||||||
|
|
||||||
RUN addgroup -g $USER_GID -S $USERNAME \
|
|
||||||
&& adduser -u $USER_UID -S $USERNAME -G $USERNAME
|
|
||||||
|
|
||||||
COPY start-container /usr/local/bin/start-container
|
COPY start-container /usr/local/bin/start-container
|
||||||
RUN chmod +x /usr/local/bin/start-container
|
|
||||||
|
RUN apt-get -y update \
|
||||||
|
&& apt-get install -y php php-xml php-curl php-xml php-mbstring composer npm \
|
||||||
|
&& useradd --home-dir=/var/www/html --uid=$USER_UID $USERNAME \
|
||||||
|
&& chmod +x /usr/local/bin/start-container
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user