Skip to content

Commit

Permalink
Moving Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
isontheline committed Jun 4, 2024
1 parent 6fbbf90 commit 572941b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: ./backend/
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ EXPOSE 1984

RUN mkdir /data
RUN chown app:app /data
COPY build/libs/backend-0.0.0.jar /dragon.jar
COPY backend/build/libs/backend-0.0.0.jar /dragon.jar

USER app
ENTRYPOINT ["java","-Xmx512m", "-XX:+CrashOnOutOfMemoryError","-jar","-Dspring.profiles.active=prod","/dragon.jar"]

0 comments on commit 572941b

Please sign in to comment.