FROM clojure:temurin-21-tools-deps
RUN apt-get update && apt-get install -y --no-install-recommends wget && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY deps.edn build.clj tests.edn ./
COPY shared/ shared/
COPY api/ api/
COPY auth-gw/ auth-gw/
COPY web-sm/ web-sm/
COPY tui-sm/ tui-sm/
COPY test/ test/
COPY e2e/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN clj -P -M:test/base:test/e2e
ENTRYPOINT ["/entrypoint.sh"]
CMD ["clj", "-M:test/base:test/e2e"]
