mirror of
https://gitea.gofwd.group/Forward_Group/ballistic-builder-spring.git
synced 2026-01-21 01:01:05 -05:00
more reorganization of packages
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Stage 1: Build the application (The Build Stage)
|
||||
# Use a Java SDK image with Maven pre-installed
|
||||
FROM maven:3.9-jdk-17-slim AS build
|
||||
FROM maven:3.9-jdk-21-slim AS build
|
||||
|
||||
# Set the working directory inside the container
|
||||
WORKDIR /app
|
||||
@@ -17,7 +17,7 @@ RUN mvn clean package -DskipTests
|
||||
|
||||
# Stage 2: Create the final lightweight image (The Runtime Stage)
|
||||
# Use a smaller Java Runtime Environment (JRE) image for a smaller footprint
|
||||
FROM openjdk:17-jre-slim
|
||||
FROM openjdk:21
|
||||
|
||||
# Set the working directory in the final image
|
||||
WORKDIR /app
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
services:
|
||||
postgres:
|
||||
image: 'postgres:latest'
|
||||
environment:
|
||||
- 'POSTGRES_DB=mydatabase'
|
||||
- 'POSTGRES_PASSWORD=secret'
|
||||
- 'POSTGRES_USER=myuser'
|
||||
ports:
|
||||
- '5432'
|
||||
Reference in New Issue
Block a user