Skip to content

Commit

Permalink
feat: copy application files to build
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrildewit committed Jan 12, 2024
1 parent d65ba0e commit f800877
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docker/php/build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ RUN mkdir -p /var/www/html && chown -R www-data:www-data /var/www/html

WORKDIR /var/www/html

COPY ./tinker ./tinker
COPY ./bootstrap ./bootstrap
COPY ./config ./config
COPY ./database ./database
COPY ./public ./public
COPY ./routes ./routes
COPY ./storage ./storage
COPY ./app ./app

# Composer dependencies
FROM composer:2.6.5 AS composer_vendor
WORKDIR /app
Expand All @@ -50,7 +59,6 @@ RUN --mount=type=cache,target=/root/.composer/cache composer install \
--no-scripts \
--prefer-dist

# Local environment
FROM base AS app
EXPOSE 9000
USER www-data
Expand Down

0 comments on commit f800877

Please sign in to comment.