File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11FROM node:20-alpine3.17 as tailwind
22
33COPY . /app
4- RUN npx tailwindcss -i /app/static/style.css -o build.css --minify
4+
5+ WORKDIR /app
6+
7+ RUN npx tailwindcss -i /app/static/style.css -o /app/build.css --minify
58
69FROM ubuntu as prod
710
8- ENV DEV false
11+ ENV DEV= false
912
1013RUN apt-get update && apt-get install ucspi-tcp
1114
1215EXPOSE 3000
1316
1417COPY . /app
1518
16- COPY --from=tailwind build.css /app/static/tailwind.css
19+ COPY --from=tailwind /app/ build.css /app/static/tailwind.css
1720
1821CMD [ "/app/start.sh" ]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ cd "${0%/*}"
44
55[[ -f ' config.sh' ]] && source config.sh
66
7- if [[ ! -z " $TAILWIND " ]]; then
7+ if [[ " ${DEV :- true} " == " true " ]] && [[ ! -z " $TAILWIND " ]]; then
88 npx tailwindcss -i ./static/style.css -o ./static/tailwind.css --watch=always 2>&1 \
99 | sed ' /^[[:space:]]*$/d;s/^/[tailwind] /' &
1010 PID=$!
You can’t perform that action at this time.
0 commit comments