Skip to content
Snippets Groups Projects
Commit 1876e95a authored by Robert Goldmann's avatar Robert Goldmann
Browse files

added dockerfile for jar smoke test

parent 679ba51e
Branches
Tags
No related merge requests found
FROM openjdk:17-bullseye
ARG APP_DIR=/BudgetMaster
RUN mkdir -p $APP_DIR
RUN mkdir -p /root/.Deadlocker/BudgetMaster
COPY build/2.9.0/BudgetMaster-v2.9.0.jar /BudgetMaster/BudgetMaster.jar
COPY src/main/resources/config/templates/settings-docker.properties /root/.Deadlocker/BudgetMaster/settings.properties
RUN echo "server.port=9000" > ~/.Deadlocker/BudgetMaster/settings.properties
EXPOSE 9000
ENV JAR_LOCATION=$APP_DIR/BudgetMaster.jar
CMD ["sh", "-c", "java -jar ${JAR_LOCATION}"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment