Files
btcprice/Dockerfile
T
magnusandClaude Opus 4.6 397d9f7b5c Split data layer into btcdata service
Remove DB, Binance WebSocket, and Kraken pollers from btcprice.
UI now uses vanilla EventSource connecting to btcdata for live
price updates. btcprice is now a pure UI service with no database.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 20:07:48 +01:00

29 lines
672 B
Docker

FROM node:22-alpine AS css
WORKDIR /build
COPY package.json package-lock.json ./
RUN npm ci
COPY resources/css/ resources/css/
COPY src/ src/
COPY tailwind.config.js ./
RUN npm run css:build
FROM clojure:temurin-21-tools-deps-alpine AS build
WORKDIR /build
COPY deps.edn build.clj ./
RUN clj -Sforce -P
COPY . .
COPY --from=css /build/resources/public/css/output.css resources/public/css/output.css
RUN clj -T:build all
FROM eclipse-temurin:21-jre-alpine
COPY --from=build /build/target/btcprice-standalone.jar /btcprice/btcprice-standalone.jar
EXPOSE 4040
ENV PORT=4040
ENV BTCDATA_URL=http://btcdata:4100
CMD ["java", "-jar", "/btcprice/btcprice-standalone.jar"]