FROM fukamachi/qlot

WORKDIR /app
COPY . /app

RUN apt-get update && apt-get install -y curl libev-dev nodejs npm

RUN npm ci
RUN npx tailwindcss -i ./public/style/global.css -o ./public/style/dist.css --minify

RUN ros install asdf
RUN qlot install

EXPOSE 3000

ENTRYPOINT [".qlot/bin/clackup", "--system", "hp", "--server", "woo", "--address", "0.0.0.0", "--port", "3000", "src/app.lisp"]