fix: Tailwind build in development

This commit is contained in:
Matouš Volf
2024-08-16 17:44:43 +02:00
parent f9db555ec0
commit 472593bbc1
6 changed files with 29 additions and 6 deletions

View File

@ -2,11 +2,13 @@ FROM rust:1.80-bookworm
RUN rustup target add wasm32-unknown-unknown
RUN cargo install dioxus-cli diesel_cli
RUN apt-get update && apt-get install -y nodejs npm
RUN apt-get update && apt-get install -y nodejs npm supervisor
COPY . /srv/app
WORKDIR /srv/app
RUN npm install
CMD npm run watch & dx serve --port 8000
COPY docker/dev/app/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

View File

@ -0,0 +1,23 @@
[supervisord]
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
pidfile=/dev/null
[program:npm]
command=npm run watch
directory=/srv/app
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true
[program:dx]
command=dx serve --port 8000
directory=/srv/app
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
redirect_stderr=true