Skip to content

Commit

Permalink
buildx gaul#2
Browse files Browse the repository at this point in the history
  • Loading branch information
reluxa committed Oct 10, 2021
1 parent 0b5cef0 commit 8f2f71c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Build
run: |
docker build . # will run buildx
16 changes: 2 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
# Multistage - Builder
FROM maven:3.5.0-jdk-8-alpine as s3proxy-builder
LABEL maintainer="Andrew Gaul <andrew@gaul.org>"

WORKDIR /opt/s3proxy
COPY . /opt/s3proxy/

RUN mvn package -DskipTests

# Multistage - Image
FROM openjdk:8-jre-alpine
LABEL maintainer="Andrew Gaul <andrew@gaul.org>"

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 \
Expand Down

0 comments on commit 8f2f71c

Please sign in to comment.