This commit is contained in:
26
Dockerfile
26
Dockerfile
@@ -16,19 +16,19 @@ ENV NVM_DIR="/home/$USERNAME/.nvm"
|
|||||||
|
|
||||||
COPY start-container.sh /usr/local/bin/start-container
|
COPY start-container.sh /usr/local/bin/start-container
|
||||||
|
|
||||||
RUN apt-get -y update \
|
RUN apt-get -y update
|
||||||
apt-get install -y curl git 7zip php php-xml php-curl php-xml php-mbstring php-mysql php-gd \
|
RUN apt-get install -y curl git 7zip php php-xml php-curl php-xml php-mbstring php-mysql php-gd
|
||||||
useradd --create-home --uid=${USER_UID} ${USERNAME} \
|
RUN useradd --create-home --uid=${USER_UID} ${USERNAME}
|
||||||
chmod +x /usr/local/bin/start-container \
|
RUN chmod +x /usr/local/bin/start-container
|
||||||
echo "install composer" \
|
RUN echo "install composer"
|
||||||
curl -o composer-setup.php https://getcomposer.org/installer \
|
RUN curl -o composer-setup.php https://getcomposer.org/installer
|
||||||
curl -o composer-setup.sig https://composer.github.io/installer.sig \
|
RUN curl -o composer-setup.sig https://composer.github.io/installer.sig
|
||||||
echo " composer-setup.php" >> composer-setup.sig \
|
RUN echo " composer-setup.php" >> composer-setup.sig
|
||||||
sha384sum -c composer-setup.sig \
|
RUN sha384sum -c composer-setup.sig
|
||||||
if [ -n "$COMPOSER_VERSION" ]; then COMPOSER_VERSION="--${COMPOSER_VERSION}"; fi \
|
RUN if [ -n "$COMPOSER_VERSION" ]; then COMPOSER_VERSION="--${COMPOSER_VERSION}"; fi
|
||||||
php composer-setup.php --install-dir=/usr/local/bin --filename=composer $COMPOSER_VERSION \
|
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer $COMPOSER_VERSION
|
||||||
rm composer-setup.php composer-setup.sig /var/www/html/* \
|
RUN rm composer-setup.php composer-setup.sig /var/www/html/*
|
||||||
chown $USERNAME:$USERNAME /var/www/html \
|
RUN chown $USERNAME:$USERNAME /var/www/html
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user