Fixed failing docker builds

This commit is contained in:
Chris Kankiewicz
2020-01-13 08:16:31 -07:00
parent d865a83232
commit 25992b19c0
2 changed files with 6 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ RUN composer install --working-dir /application --ignore-platform-reqs \
--no-cache --no-dev --no-interaction
# Install and compile JavaScript assets
FROM node:13.2 AS js-dependencies
FROM node:13.6 AS js-dependencies
COPY --from=php-dependencies /application /application
RUN cd /application && npm install && npm run production

View File

@@ -2,6 +2,8 @@ let mix = require('laravel-mix');
let tailwindcss = require('tailwindcss');
require('laravel-mix-purgecss');
mix.setPublicPath('.');
mix.sass('app/resources/sass/app.scss', 'app/dist/app.css').options({
processCssUrls: false,
postCss: [tailwindcss('tailwind.config.js')]
@@ -21,6 +23,6 @@ mix.purgeCss({
whitelistPatterns: [/^fa\-/]
});
// if (mix.inProduction()) {
// mix.version();
// }
if (mix.inProduction()) {
mix.version();
}