Skip to content

Commit 36132e8

Browse files
fix: update Dockerfile base images and configure docker-compose for build context
1 parent c750a5d commit 36132e8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM maven:3-amazoncorretto-21 AS base
1+
FROM maven:3-eclipse-temurin-21 AS base
22

33
FROM base AS builder
44
WORKDIR /app
@@ -16,7 +16,8 @@ WORKDIR /app/forms/target/deps
1616
RUN jar -xf ../*.jar
1717

1818
# Build the runtime image
19-
FROM openjdk:21-jdk-slim AS runtime
19+
FROM eclipse-temurin:21-jre-alpine AS runtime
20+
RUN apk add --no-cache bash curl
2021
WORKDIR /opt/devgateway/tcdi/admin
2122

2223
# Copy the application code

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
services:
22
web:
3-
image: data-viz-admin:latest
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
restart: unless-stopped
47
environment:
58
SPRING_DATASOURCE_JDBC_URL: "jdbc:postgresql://postgres:5432/tcdi_admin"
69
SPRING_JPA_HIBERNATE_DDL-AUTO: "update"

0 commit comments

Comments
 (0)