Skip to content

Commit

Permalink
build: change dockerfile of inventory-service
Browse files Browse the repository at this point in the history
  • Loading branch information
micaellobo committed Apr 20, 2024
1 parent 60f9ae5 commit 10954d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@ on:
- 'documentation/**'
- 'README.md'
- '.insomnium'
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
Expand Down
11 changes: 2 additions & 9 deletions inventory-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
FROM maven:3.8.5-openjdk-17 AS build
COPY . /usr/app
WORKDIR /usr/app
RUN mvn clean package

FROM openjdk:17
FROM openjdk:17-jdk AS build
VOLUME /tmp
COPY --from=build /usr/app/target/*.jar inventory-service.jar
COPY target/*.jar app.jar
ENTRYPOINT ["java","-jar","/inventory-service.jar"]
EXPOSE 8083

0 comments on commit 10954d1

Please sign in to comment.