-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CICD] mainImage, attachment 경로 mount 설정 (#55)
* CICD: Add mainImage, attachment directory for mounting * CICD: Add volumes to mount with server directory. (for attachment)
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters