Fix Dockerfile base images and add docker-compose
Switch to available base images (temurin-21) since clojure:openjdk-25 and azul/zulu-openjdk-alpine:25 no longer exist. Add docker-compose.yml for single-command app deployment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ COPY src/ src/
|
|||||||
COPY tailwind.config.js ./
|
COPY tailwind.config.js ./
|
||||||
RUN npm run css:build
|
RUN npm run css:build
|
||||||
|
|
||||||
FROM clojure:openjdk-25 AS build
|
FROM clojure:temurin-21-tools-deps-alpine AS build
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY deps.edn build.clj ./
|
COPY deps.edn build.clj ./
|
||||||
@@ -17,7 +17,7 @@ COPY . .
|
|||||||
COPY --from=css /build/resources/public/css/output.css resources/public/css/output.css
|
COPY --from=css /build/resources/public/css/output.css resources/public/css/output.css
|
||||||
RUN clj -T:build all
|
RUN clj -T:build all
|
||||||
|
|
||||||
FROM azul/zulu-openjdk-alpine:25
|
FROM eclipse-temurin:21-jre-alpine
|
||||||
|
|
||||||
COPY --from=build /build/target/btcprice-standalone.jar /btcprice/btcprice-standalone.jar
|
COPY --from=build /build/target/btcprice-standalone.jar /btcprice/btcprice-standalone.jar
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
build: .
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "4040:4040"
|
||||||
|
environment:
|
||||||
|
JDBC_URL: "jdbc:postgresql://postgres:5432/btcprod?user=postgres&password=ratata,123"
|
||||||
|
extra_hosts:
|
||||||
|
- "postgres:host-gateway"
|
||||||
Reference in New Issue
Block a user