Skip to content

Commit

Permalink
deploy: Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-orciuolo committed Feb 13, 2024
1 parent b4c62ed commit 6b6ee88
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions IT/codekatabattle/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM eclipse-temurin:17-jdk-alpine
VOLUME /tmp
WORKDIR /app

ARG MAVEN_VERSION=3.9.6
ARG USER_HOME_DIR="/root"
Expand All @@ -22,7 +22,10 @@ RUN mkdir -p /usr/share/maven /usr/share/maven/ref \
ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"

COPY target/*.jar app.jar
# Build project
RUN mvn compile

ENTRYPOINT ["java", "-jar", "/app.jar"]
COPY target/*.jar ckb.jar

ENTRYPOINT ["java", "-jar", "ckb.jar"]
EXPOSE 8000

0 comments on commit 6b6ee88

Please sign in to comment.