dnet-docker/apps/collector/dockerfile

14 lines
253 B
Plaintext

# Fetching latest version of Java
FROM openjdk:18
# Setting up work directory
WORKDIR /app
# Copy the jar file into our app
COPY ./target/*.jar /app/app.jar
# Exposing port 8080
EXPOSE 8080
# Starting the application
CMD ["java", "-jar", "app.jar"]