Skip to content

Commit 5ed79dc

Browse files
committed
fix dockerfile
1 parent e3325f9 commit 5ed79dc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ name: Docker
66
# documentation.
77

88
on:
9-
schedule:
10-
- cron: '35 22 * * *'
119
push:
1210
branches: [ "main" ]
1311
# Publish semver tags as releases.

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
FROM amazoncorretto:21-alpine AS builder
2-
ADD ./ /.
2+
ADD ./ /build
3+
WORKDIR /build
34
CMD ./gradlew build -x test
45

56
FROM amazoncorretto:21-alpine
6-
COPY --from=builder /build/libs/*.jar /
7-
COPY --from=builder /resources /resources
7+
WORKDIR /app
8+
COPY --from=builder /build/build/libs/*.jar /app
9+
COPY --from=builder /build/resources /app/resources
810
EXPOSE 8080/tcp
9-
VOLUME /resources
10-
ENTRYPOINT java -jar /backend.jar
11+
VOLUME /app/resources
12+
ENTRYPOINT java -jar /app/backend.jar

0 commit comments

Comments
 (0)