Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrator committed Dec 10, 2024
1 parent e52385e commit 2d4b1d3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM openjdk:11-jre-slim
ENV HOME=/app
RUN mkdir -p $HOME
WORKDIR $HOME
FROM openjdk:11-jre-slim as build
WORKDIR /app/
ARG JAR_FILE
ADD ./backend /app/backend

FROM openjdk:11-jre-slim
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
COPY --from=build ${JAR_FILE} app.jar

EXPOSE 8081
ENTRYPOINT ["java","-jar","/app.jar"]

0 comments on commit 2d4b1d3

Please sign in to comment.