Skip to content

Commit 7c2a625

Browse files
authored
Merge pull request #148 from prgrms-web-devcourse-final-project/deploy-1
deploy
2 parents 3e8b0d2 + bc2f445 commit 7c2a625

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ jobs:
235235
--restart unless-stopped \
236236
--network "${NET}" \
237237
-e TZ=Asia/Seoul \
238+
-d /bid_data:/data \
238239
"${IMAGE}"
239240
240241
# ---------------------------------------------------------

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ WORKDIR /app
2828
COPY --from=builder /app/build/libs/*.jar app.jar
2929
COPY --from=builder /app/.env .env
3030

31+
RUN mkdir /data
32+
3133
# 실행할 JAR 파일 지정
3234
ENTRYPOINT ["java", "-Dspring.profiles.active=prod", "-jar", "app.jar"]

src/main/resources/application-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jwt:
2424

2525
file:
2626
upload:
27-
path: ${user.home}/uploads
27+
path: /data
2828
base-url: https://api.bid-market.shop/uploads
2929
testdata:
3030
generation:

0 commit comments

Comments
 (0)