diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 65bea5de..a1e7c855 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 }} diff --git a/backend/Dockerfile b/Dockerfile similarity index 81% rename from backend/Dockerfile rename to Dockerfile index 7628c6c7..8545ec90 100644 --- a/backend/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file