Skip to content

Commit ea45ad1

Browse files
author
curtisdelicata
committed
Include local packages in Docker dependency stage
1 parent f499d37 commit ea45ad1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
1919
# Copy composer files
2020
COPY composer.json composer.lock ./
2121

22+
# The application owns its module and theme packages through Composer path
23+
# repositories. They must be present in this dependency stage so a clean Docker
24+
# build resolves the locked package graph without relying on a developer checkout.
25+
COPY modules ./modules
26+
COPY themes ./themes
27+
2228
# Install composer dependencies (no autoloader yet, will optimize in final stage)
2329
RUN composer install \
2430
--no-dev \
@@ -168,4 +174,3 @@ EXPOSE 8080
168174
ENTRYPOINT ["start-container"]
169175

170176
HEALTHCHECK --start-period=5s --interval=2s --timeout=5s --retries=8 CMD php artisan octane:status || exit 1
171-

0 commit comments

Comments
 (0)