-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (23 loc) · 769 Bytes
/
Dockerfile
File metadata and controls
33 lines (23 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Use a Maven base image to build the project
FROM maven AS build
WORKDIR /usr/src/app
COPY pom.xml .
RUN mvn -B -e -C -T 1C org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline
COPY . .
# Compile and package the application to an executable JAR file
RUN mvn clean package
# Use an official Ubuntu runtime as a parent image
#FROM ubuntu:latest
FROM eclipse-temurin:21-jdk
# Set the maintainer label
LABEL maintainer="postmaster@asterionsoft.cz"
# Update Ubuntu Software repository
RUN apt update
# Install FFmpeg
RUN apt install -y ffmpeg
# Copy the built JAR file from the build stage
COPY --from=0 /usr/src/app/target/*.jar ./app.jar
# The port the app runs on
EXPOSE 8080
# Command to run the application
ENTRYPOINT ["java","-jar","/app.jar"]