Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: docker #58

Merged
merged 3 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- aurora
tags:
- "v*.*.*"
- "*.*.*"
pull_request:
branches:
- aurora
Expand All @@ -25,8 +25,8 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
0x61nas/aarty
ghcr.io/${{ github.repository_owner }}/aarty/aarty
anaselgarhy/aarty
ghcr.io/${{ github.repository_owner }}/aarty
tags: |
type=schedule
type=ref,event=branch
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Scan the image
uses: anchore/sbom-action@v0
with:
image: ghcr.io/${{ github.repository_owner }}/aarty/aarty
image: ghcr.io/${{ github.repository_owner }}/aarty

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
10 changes: 0 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ RUN cargo build --release --locked \
&& rm -f target/release/deps/aarty*

FROM debian:buster-slim as runner
RUN sed -i '/path\-exclude\s\/usr\/share\/man\/\*/d' /etc/dpkg/dpkg.cfg.d/docker
RUN apt-get update && \
apt-get install -y --no-install-recommends --allow-unauthenticated \
less \
man-db \
manpages && \
apt-get install -y --reinstall coreutils && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mandb
COPY --from=builder /app/target/release/aarty /usr/local/bin
WORKDIR /app
ENTRYPOINT ["aarty"]
Loading