Skip to content

Commit

Permalink
Subdir for Git context is not yet supported (moby/buildkit#1684) but…
Browse files Browse the repository at this point in the history
… you can use the path context in the meantime. More info on Docker docs website.
  • Loading branch information
Jean committed Apr 19, 2021
1 parent c4a4571 commit 19fd4cd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
runs-on: ubuntu-latest

steps:
# - uses: actions/checkout@v2
# - name: Set up JDK 11
# uses: actions/setup-java@v2
# with:
# java-version: '11'
# distribution: 'adopt'
# - name: Build with Maven
# run: mvn -B package --file cabal-neo-admin/pom.xml
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B package --file cabal-neo-admin/pom.xml

- uses: actions/checkout@v2
- name: Docker Login
Expand All @@ -32,8 +32,8 @@ jobs:
- name: Criando a Imagem Docker
uses: docker/[email protected]
with:
context: cabal-neo-admin
file: cabal-neo-admin/Dockerfile
context: .
file: .
tags: |
jeanlucafp/cabalneobackend:latest
jeanlucafp/cabalneobackend:${{ github.run_number }}
Expand Down
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# FROM maven:3.5-jdk-8 AS build

# COPY src .

# COPY pom.xml .

# RUN mvn -f pom.xml clean package -Dmaven.test.skip=true

FROM openjdk:11-jdk-buster

ARG JAR_FILE=cabal-neo-admin/target/*.jar

COPY ${JAR_FILE} app.jar

ENV PORT 8080

EXPOSE $PORT

ENTRYPOINT ["java","-jar","/app.jar"]
19 changes: 0 additions & 19 deletions cabal-neo-admin/Dockerfile

This file was deleted.

0 comments on commit 19fd4cd

Please sign in to comment.