From e20a321cf945f0aa329e33a600011667ff80530c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Diedrich?= Date: Sun, 2 Jun 2024 16:38:07 +0200 Subject: [PATCH] lol docker --- Dockerfile | 4 +++- assets/tailwind.config.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fb6909f..cc36370 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}" FROM ${BUILDER_IMAGE} as builder # install build dependencies -RUN apt-get update -y && apt-get install -y build-essential git \ +RUN apt-get update -y && apt-get install -y build-essential git npm \ && apt-get clean && rm -f /var/lib/apt/lists/*_* # prepare build dir @@ -51,6 +51,8 @@ COPY lib lib COPY assets assets +RUN npm ci --prefix=./assets/ + # compile assets RUN mix assets.deploy diff --git a/assets/tailwind.config.js b/assets/tailwind.config.js index 2848abd..a7024fd 100644 --- a/assets/tailwind.config.js +++ b/assets/tailwind.config.js @@ -5,6 +5,8 @@ const plugin = require("tailwindcss/plugin") const fs = require("fs") const path = require("path") +import daisyui from "daisyui" + module.exports = { content: [ "./js/**/*.js", @@ -24,7 +26,7 @@ module.exports = { }, plugins: [ require("@tailwindcss/forms"), - require("daisyui"), + daisyui, // Allows prefixing tailwind classes with LiveView classes to add rules // only when LiveView classes are applied, for example: //