Skip to content

Commit

Permalink
lm
Browse files Browse the repository at this point in the history
  • Loading branch information
phuuthanh-dev committed Jun 6, 2024
1 parent 1be63e5 commit a25d2f6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
- name: 'Publish Auction Backend Docker Image'
working-directory: ${{ github.workspace }}/server
working-directory: ${{ github.workspace }}
run: |
docker build . -t ghcr.io/phuuthanh2003/auction-api:${{ steps.get_version.outputs.version }} -t ghcr.io/phuuthanh2003/auction-api:latest
docker push ghcr.io/phuuthanh2003/auction-api:${{ steps.get_version.outputs.version }}
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM maven:3.8.4-openjdk-17-slim AS build
WORKDIR /app
COPY . .
RUN mvn clean package -DskipTests

FROM openjdk:17-jdk-alpine
WORKDIR /app
COPY --from=build /app/target/*.jar /app/app.jar
EXPOSE 8080
CMD ["java", "-jar", "/app/app.jar"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[![Spring Boot CI](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/ci.yml) [![Release Auction REST API](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/release.yml/badge.svg)](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/release.yml)
[![Spring Boot CI](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/ci.yml) [![Release Auction REST API](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/release.yml/badge.svg)](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/release.yml) [![Publish Auction Backend Docker Image](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/phuuthanh2003/AuctionWebApp_BE/actions/workflows/docker-publish.yml)
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '3.8'
version: '3.0'

services:
auction-api:
image: ghcr.io/phuuthanh2003/auction-api:latest
ports:
- "8080:8080"
- "8085:8080"
depends_on:
- auction-database

Expand Down
7 changes: 0 additions & 7 deletions server/Dockerfile

This file was deleted.

0 comments on commit a25d2f6

Please sign in to comment.