dockerfile update
This commit is contained in:
parent
9cff545c99
commit
c44d7de143
@ -1,13 +1,14 @@
|
|||||||
FROM serversideup/php:8.2-fpm-nginx
|
FROM serversideup/php:8.2-fpm-nginx
|
||||||
ARG POSTGRES_VERSION=15
|
ARG POSTGRES_VERSION=15
|
||||||
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs postgresql-client
|
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs postgresql-client
|
||||||
RUN apt-get -y autoremove \
|
RUN apt-get -y autoremove &&
|
||||||
&& apt-get clean \
|
apt-get clean &&
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
||||||
|
|
||||||
RUN echo "alias ll='ls -al'" >> /etc/bash.bashrc
|
RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc
|
||||||
RUN echo "alias a='php artisan'" >> /etc/bash.bashrc
|
RUN echo "alias a='php artisan'" >>/etc/bash.bashrc
|
||||||
RUN echo "alias mfs='php artisan migrate:fresh --seed'" >> /etc/bash.bashrc
|
RUN echo "alias mfs='php artisan migrate:fresh --seed'" >>/etc/bash.bashrc
|
||||||
RUN echo "alias cda='composer dump-autoload'" >> /etc/bash.bashrc
|
RUN echo "alias cda='composer dump-autoload'" >>/etc/bash.bashrc
|
||||||
|
RUN echo "alias run='./scripts/run'" >>/etc/bash.bashrc
|
||||||
|
|
||||||
# COPY --chmod=755 docker/dev-ssu/etc/s6-overlay/ /etc/s6-overlay/
|
# COPY --chmod=755 docker/dev-ssu/etc/s6-overlay/ /etc/s6-overlay/
|
||||||
|
@ -8,9 +8,9 @@ FROM serversideup/php:8.2-fpm-nginx
|
|||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
ARG POSTGRES_VERSION=15
|
ARG POSTGRES_VERSION=15
|
||||||
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs
|
RUN apt-get update && apt-get install -y php-pgsql openssh-client git git-lfs
|
||||||
RUN apt-get -y autoremove \
|
RUN apt-get -y autoremove &&
|
||||||
&& apt-get clean \
|
apt-get clean &&
|
||||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
||||||
|
|
||||||
COPY composer.json composer.lock ./
|
COPY composer.json composer.lock ./
|
||||||
RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist
|
RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist
|
||||||
@ -23,3 +23,9 @@ COPY --chmod=755 docker/prod-ssu/etc/s6-overlay/ /etc/s6-overlay/
|
|||||||
|
|
||||||
RUN php artisan route:cache
|
RUN php artisan route:cache
|
||||||
RUN php artisan view:cache
|
RUN php artisan view:cache
|
||||||
|
|
||||||
|
RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc
|
||||||
|
RUN echo "alias a='php artisan'" >>/etc/bash.bashrc
|
||||||
|
RUN echo "alias mfs='php artisan migrate:fresh --seed'" >>/etc/bash.bashrc
|
||||||
|
RUN echo "alias cda='composer dump-autoload'" >>/etc/bash.bashrc
|
||||||
|
RUN echo "alias run='./scripts/run'" >>/etc/bash.bashrc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user