You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I am using custom server: shelf, tailwindcss + daisyUI.
I can build the project by running 'jaspr build' locally.
But I am trying to get it run within a docker and when building the image it never ends.
I am not very good with docker but it see
Here's the docker log when building the image:
=> => # [BUILDER] [WARNing] No actions completed for 15.1s, waiting on:
=> => # [BUILDER] [WARNing] - jaspr_tailwind:compiler on web/styles.tw.css
=> => # [BUILDER] 7m 52s elapsed, 207/208 actions completed.
Additional Context
Dockerfile
FROM dart:latest AS build
### Install Node.js and other dependencies
RUN apt-get update && apt-get install -y apt-transport-https wget gnupg curl && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg && \
echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_14.x $(. /etc/os-release && echo "$VERSION_CODENAME") main" > /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install -y nodejs npm && \
npm install -g npm@latest
### Activate the jaspr cli.
RUN dart pub global activate jaspr_cli
WORKDIR /app
COPY . .
### Install TailwindCSS
RUN curl -fsSL https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-linux-x64 -o tailwindcss && \
chmod +x tailwindcss && \
mv tailwindcss /usr/local/bin/tailwindcss && \
tailwindcss --help > /dev/null
### Install DaisyUI
RUN npm init -y && \
npm install daisyui@latest
RUN rm -f pubspec_overrides.yaml
RUN dart pub get
RUN dart pub global run jaspr_cli:jaspr build --verbose
FROM scratch
COPY --from=build /runtime/ /
COPY --from=build /app/build/jaspr/ /app/
WORKDIR /app
EXPOSE 8080
CMD ["./app"]
as a workaround, I can just build the style.css locally and then copy it to docker by running "tailwindcss --input web/styles.tw.css --output web/styles.css --config tailwind.config.js". but I feel there should be some documentation or fix for those who want to ship their app in a docker.
Description
I am using custom server: shelf, tailwindcss + daisyUI.
I can build the project by running 'jaspr build' locally.
But I am trying to get it run within a docker and when building the image it never ends.
I am not very good with docker but it see
Here's the docker log when building the image:
Additional Context
Dockerfile
tailwind.config.js
pubspec.yaml
/web/styles.tw.css
The text was updated successfully, but these errors were encountered: