Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
jsixface committed Mar 8, 2024
1 parent fab4fa7 commit baa644a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,15 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Copy artifacts to Docker build context
run: |
mkdir -p docker-context
cp -r server docker-context/
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}:server"
context: docker-context
file: Dockerfile
push: true
labels: ${{ steps.meta.outputs.labels }}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENV BIND=0.0.0.0
WORKDIR /app
EXPOSE 8080

ADD ./static /app/static
ADD ./build/libs/server-all.jar /app
ADD server/static /app/static
ADD server/build/libs/server-all.jar /app

ENTRYPOINT java -jar /app/server-all.jar

0 comments on commit baa644a

Please sign in to comment.