Files
storycove/backend/Dockerfile
2025-09-26 22:26:26 +02:00

16 lines
356 B
Docker

FROM openjdk:17-jdk-slim
WORKDIR /app
# Install Maven and PostgreSQL client tools
RUN apt-get update && apt-get install -y maven postgresql-client && rm -rf /var/lib/apt/lists/*
# Copy source code
COPY . .
# Build the application
RUN mvn clean package -DskipTests
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "target/storycove-backend-0.0.1-SNAPSHOT.jar"]