# Hello Javalin Demo docker file

# To build: docker build -t henrikbaerbak/private:hello-javalin .

# To run: docker run -d -p 4567:4567 henrikbaerbak/private:hello-javalin

# Base image - java 25 + gradle 9.2
FROM gradle:9.2-jdk25

# Insert my name and email in resulting container
LABEL maintainer="HenrikBaerbakChristenen_hbc@cs.au.dk"

# Create the /root/hello folder and change to it
WORKDIR /root/hello

# Copy the source code from HOST into GUEST
COPY src/ src/
COPY build.gradle build.gradle

# Expose the port that hello-javalin will use
EXPOSE 4567

# Define the default command to run
CMD ["gradle","hello"]


