Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Jun 15, 2023
1 parent 38cb3fd commit 1540493
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docker/prod-ssu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ WORKDIR /var/www/html
COPY composer.json composer.lock ./
RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist

COPY --chown=9999:9999 . .
RUN composer dump-autoload


FROM node:19 as static-assets
WORKDIR /app
Expand All @@ -23,10 +22,15 @@ RUN apt-get -y autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
COPY docker/prod-ssu/nginx.conf /etc/nginx/conf.d/custom.conf

COPY --from=base --chown=9999:9999 /var/www/html .

COPY --chown=9999:9999 . .
RUN composer dump-autoload

COPY --from=static-assets --chown=9999:9999 /app/public/build ./public/build
COPY --chmod=755 docker/prod-ssu/etc/s6-overlay/ /etc/s6-overlay/

RUN php artisan optimize
RUN php artisan route:cache
RUN php artisan view:cache

RUN echo "alias ll='ls -al'" >>/etc/bash.bashrc
RUN echo "alias a='php artisan'" >>/etc/bash.bashrc
Expand Down

0 comments on commit 1540493

Please sign in to comment.