add missing symfony and python to workspace and remove useless alias
This commit is contained in:
parent
1e650d8643
commit
8e84fbbec2
|
@ -319,14 +319,6 @@ USER laradock
|
||||||
RUN echo "" >> ~/.bashrc && \
|
RUN echo "" >> ~/.bashrc && \
|
||||||
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
||||||
|
|
||||||
#####################################
|
|
||||||
# Laravel Artisan Alias
|
|
||||||
#####################################
|
|
||||||
USER root
|
|
||||||
|
|
||||||
RUN echo "" >> ~/.bashrc && \
|
|
||||||
echo 'alias art="php artisan"' >> ~/.bashrc
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Laravel Envoy:
|
# Laravel Envoy:
|
||||||
#####################################
|
#####################################
|
||||||
|
@ -442,6 +434,41 @@ RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
||||||
|
|
||||||
USER laradock
|
USER laradock
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Symfony:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_SYMFONY=false
|
||||||
|
ENV INSTALL_SYMFONY ${INSTALL_SYMFONY}
|
||||||
|
RUN if [ ${INSTALL_SYMFONY} = true ]; then \
|
||||||
|
|
||||||
|
mkdir -p /usr/local/bin \
|
||||||
|
&& curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony \
|
||||||
|
&& chmod a+x /usr/local/bin/symfony \
|
||||||
|
|
||||||
|
# Symfony 3 alias
|
||||||
|
&& echo 'alias dev="php bin/console -e=dev"' >> ~/.bashrc \
|
||||||
|
&& echo 'alias prod="php bin/console -e=prod"' >> ~/.bashrc \
|
||||||
|
|
||||||
|
# Symfony 2 alias
|
||||||
|
# && echo 'alias dev="php app/console -e=dev"' >> ~/.bashrc \
|
||||||
|
# && echo 'alias prod="php app/console -e=prod"' >> ~/.bashrc \
|
||||||
|
|
||||||
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# PYTHON:
|
||||||
|
#####################################
|
||||||
|
|
||||||
|
ARG INSTALL_PYTHON=false
|
||||||
|
ENV INSTALL_PYTHON ${INSTALL_PYTHON}
|
||||||
|
RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
||||||
|
apt-get update \
|
||||||
|
&& apt-get -y install python python-pip python-dev build-essential \
|
||||||
|
&& pip install --upgrade pip \
|
||||||
|
&& pip install --upgrade virtualenv \
|
||||||
|
;fi
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
# Final Touch
|
# Final Touch
|
||||||
|
|
|
@ -336,14 +336,6 @@ USER laradock
|
||||||
RUN echo "" >> ~/.bashrc && \
|
RUN echo "" >> ~/.bashrc && \
|
||||||
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
||||||
|
|
||||||
#####################################
|
|
||||||
# Laravel Artisan Alias
|
|
||||||
#####################################
|
|
||||||
USER root
|
|
||||||
|
|
||||||
RUN echo "" >> ~/.bashrc && \
|
|
||||||
echo 'alias art="php artisan"' >> ~/.bashrc
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Laravel Envoy:
|
# Laravel Envoy:
|
||||||
#####################################
|
#####################################
|
||||||
|
@ -510,6 +502,19 @@ RUN if [ ${INSTALL_MC} = true ]; then\
|
||||||
chmod +x /usr/local/bin/mc \
|
chmod +x /usr/local/bin/mc \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Image optimizers:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_IMAGE_OPTIMIZERS=false
|
||||||
|
ENV INSTALL_IMAGE_OPTIMIZERS ${INSTALL_IMAGE_OPTIMIZERS}
|
||||||
|
RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
||||||
|
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle && \
|
||||||
|
if [ ${INSTALL_NODE} = true ]; then \
|
||||||
|
. ~/.bashrc && npm install -g svgo \
|
||||||
|
;fi\
|
||||||
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Symfony:
|
# Symfony:
|
||||||
#####################################
|
#####################################
|
||||||
|
@ -532,19 +537,6 @@ RUN if [ ${INSTALL_SYMFONY} = true ]; then \
|
||||||
|
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
|
||||||
# Image optimizers:
|
|
||||||
#####################################
|
|
||||||
USER root
|
|
||||||
ARG INSTALL_IMAGE_OPTIMIZERS=false
|
|
||||||
ENV INSTALL_IMAGE_OPTIMIZERS ${INSTALL_IMAGE_OPTIMIZERS}
|
|
||||||
RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
|
||||||
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle && \
|
|
||||||
if [ ${INSTALL_NODE} = true ]; then \
|
|
||||||
. ~/.bashrc && npm install -g svgo \
|
|
||||||
;fi\
|
|
||||||
;fi
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# PYTHON:
|
# PYTHON:
|
||||||
#####################################
|
#####################################
|
||||||
|
|
|
@ -337,14 +337,6 @@ USER laradock
|
||||||
RUN echo "" >> ~/.bashrc && \
|
RUN echo "" >> ~/.bashrc && \
|
||||||
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
echo 'export PATH="/var/www/vendor/bin:$PATH"' >> ~/.bashrc
|
||||||
|
|
||||||
#####################################
|
|
||||||
# Laravel Artisan Alias
|
|
||||||
#####################################
|
|
||||||
USER root
|
|
||||||
|
|
||||||
RUN echo "" >> ~/.bashrc && \
|
|
||||||
echo 'alias art="php artisan"' >> ~/.bashrc
|
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Laravel Envoy:
|
# Laravel Envoy:
|
||||||
#####################################
|
#####################################
|
||||||
|
@ -513,6 +505,21 @@ RUN if [ ${INSTALL_MC} = true ]; then\
|
||||||
chmod +x /usr/local/bin/mc \
|
chmod +x /usr/local/bin/mc \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
#####################################
|
||||||
|
# Image optimizers:
|
||||||
|
#####################################
|
||||||
|
USER root
|
||||||
|
ARG INSTALL_IMAGE_OPTIMIZERS=false
|
||||||
|
ENV INSTALL_IMAGE_OPTIMIZERS ${INSTALL_IMAGE_OPTIMIZERS}
|
||||||
|
RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
||||||
|
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle && \
|
||||||
|
if [ ${INSTALL_NODE} = true ]; then \
|
||||||
|
. ~/.bashrc && npm install -g svgo \
|
||||||
|
;fi\
|
||||||
|
;fi
|
||||||
|
|
||||||
|
USER laradock
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Symfony:
|
# Symfony:
|
||||||
#####################################
|
#####################################
|
||||||
|
@ -536,19 +543,18 @@ RUN if [ ${INSTALL_SYMFONY} = true ]; then \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
#####################################
|
#####################################
|
||||||
# Image optimizers:
|
# PYTHON:
|
||||||
#####################################
|
#####################################
|
||||||
USER root
|
|
||||||
ARG INSTALL_IMAGE_OPTIMIZERS=false
|
ARG INSTALL_PYTHON=false
|
||||||
ENV INSTALL_IMAGE_OPTIMIZERS ${INSTALL_IMAGE_OPTIMIZERS}
|
ENV INSTALL_PYTHON ${INSTALL_PYTHON}
|
||||||
RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \
|
RUN if [ ${INSTALL_PYTHON} = true ]; then \
|
||||||
apt-get install -y --force-yes jpegoptim optipng pngquant gifsicle && \
|
apt-get update \
|
||||||
if [ ${INSTALL_NODE} = true ]; then \
|
&& apt-get -y install python python-pip python-dev build-essential \
|
||||||
. ~/.bashrc && npm install -g svgo \
|
&& pip install --upgrade pip \
|
||||||
;fi\
|
&& pip install --upgrade virtualenv \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
USER laradock
|
|
||||||
|
|
||||||
#
|
#
|
||||||
#--------------------------------------------------------------------------
|
#--------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue