Skip to content

Commit

Permalink
Merge pull request #28 from d556f8/develop
Browse files Browse the repository at this point in the history
cicd(build): optimize composer install
  • Loading branch information
juhyeonni authored Sep 5, 2023
2 parents 07848d2 + 1cf812f commit d96be4f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ FROM bitnami/laravel:10-debian-11

WORKDIR /app

COPY . /app
COPY . .

RUN apt-get update && apt-get install -y \
libzip-dev \
zip \
unzip

RUN composer install
RUN composer install --no-dev --no-interaction --optimize-autoloader

RUN composer dump-autoload --optimize

CMD ["php", "artisan", "serve", "--host", "0.0.0.0", "--port", "9000"]

0 comments on commit d96be4f

Please sign in to comment.