mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 23:18:10 +00:00
ci(docker): optimize multi-stage build
This commit is contained in:
parent
042654993a
commit
31a73ccc6e
1 changed files with 2 additions and 2 deletions
|
|
@ -18,6 +18,8 @@ ENV TRMNL_LIQUID_ENABLED=1
|
|||
# Switch to the root user so we can do root things
|
||||
USER root
|
||||
|
||||
COPY --chown=www-data:www-data --from=bnussbau/trmnl-liquid-cli:0.1.0 /usr/local/bin/trmnl-liquid-cli /usr/local/bin/
|
||||
|
||||
# Set the working directory
|
||||
WORKDIR /var/www/html
|
||||
|
||||
|
|
@ -51,7 +53,5 @@ FROM base AS production
|
|||
# Copy the assets from the assets image
|
||||
COPY --chown=www-data:www-data --from=assets /app/public/build /var/www/html/public/build
|
||||
COPY --chown=www-data:www-data --from=assets /app/node_modules /var/www/html/node_modules
|
||||
|
||||
COPY --chown=www-data:www-data --from=bnussbau/trmnl-liquid-cli:latest /usr/local/bin/trmnl-liquid-cli /usr/local/bin/
|
||||
# Drop back to the www-data user
|
||||
USER www-data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue