diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 493fda40..99fbbdc2 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -26,6 +26,12 @@ jobs: - name: Set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v1 + with: + install: true - name: Available platforms - run: echo ${{ steps.buildx.outputs.platforms }} \ No newline at end of file + run: echo ${{ steps.buildx.outputs.platforms }} + + - name: Build + run: | + docker build . # will run buildx \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b085eb4d..601a6f86 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,22 +1,10 @@ -# Multistage - Builder -FROM maven:3.5.0-jdk-8-alpine as s3proxy-builder -LABEL maintainer="Andrew Gaul " - -WORKDIR /opt/s3proxy -COPY . /opt/s3proxy/ - -RUN mvn package -DskipTests - -# Multistage - Image FROM openjdk:8-jre-alpine -LABEL maintainer="Andrew Gaul " WORKDIR /opt/s3proxy COPY \ - --from=s3proxy-builder \ - /opt/s3proxy/target/s3proxy \ - /opt/s3proxy/src/main/resources/run-docker-container.sh \ + target/s3proxy \ + src/main/resources/run-docker-container.sh \ /opt/s3proxy/ ENV \