FROM fukamachi/qlot

WORKDIR /app
COPY . /app

RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential curl libev-dev nodejs npm \
 && rm -rf /var/lib/apt/lists/*

RUB npm config set prefer-ipv4 true
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"]