Skip to content

Commit

Permalink
Re-org Dockerfile conf (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
conorheffron authored Sep 9, 2024
1 parent 7d9047c commit 54872a4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
with:
context: .
file: publish/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM eclipse-temurin:21-jdk

VOLUME /tmp

#for aws
COPY target/*.war app.war
RUN sh -c 'touch /app.war'

Expand Down
15 changes: 15 additions & 0 deletions publish/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM eclipse-temurin:21-jdk

VOLUME /tmp

#for docker pub
COPY *.war app.war
RUN sh -c 'touch /app.war'

ENV RUN_FILE /run.sh
COPY run.sh ${RUN_FILE}
RUN chmod +x ${RUN_FILE}

EXPOSE 8080

ENTRYPOINT [ "sh", "-c", "${RUN_FILE}" ]

0 comments on commit 54872a4

Please sign in to comment.