Untitled
Anonymous
plain_text
08/03/2023 9:57 AM
440 B
19
Indexable
# Use a Java base image FROM openjdk:latest # Set the working directory WORKDIR /app # Copy the Java application code into the container COPY MyApp.java . # Compile the Java application with Maven RUN apt-get update && apt-get install -y maven RUN mvn compile # Run the Java application CMD ["java", "MyApp"]
Editor is loading...