Skip to content

Commit

Permalink
CICD: Add mainImage, attachment directory for mounting
Browse files Browse the repository at this point in the history
  • Loading branch information
huGgW committed Sep 2, 2023
1 parent 8b38588 commit c976e84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
FROM openjdk:17-slim

# Set profile
ARG PROFILE
ENV profile=$PROFILE

# Set workdir as /app
RUN mkdir /app
WORKDIR /app

# Copy jar file
COPY ./build/libs/*.jar /app/app.jar

# Make directories to mount
RUN mkdir /app/mainImage
RUN mkdir /app/attachment

# Expose port 8080
EXPOSE 8080

ENTRYPOINT java -Dspring.profiles.active=$profile -jar app.jar

0 comments on commit c976e84

Please sign in to comment.