Create Dockerfile

This commit is contained in:
boat cow 2023-04-09 01:10:01 -04:00 committed by GitHub
parent ecb130f736
commit 8aab951c53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM ubuntu:latest
# Install OpenJDK 17 and Maven
RUN apt-get update && \
apt-get -y install openjdk-17-jdk-headless maven
# Set working directory
WORKDIR /app
# Copy code to container
COPY . .
# Build application
RUN ./mvnw package -Dmaven.test.skip=true
# Run application
CMD ["java", "-jar", "target/*.jar"]