Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
sobomax committed Jul 24, 2024
1 parent e0c603a commit d54a2b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/rtpproxy_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ jobs:
env:
DOCKER_REPO: sippylabs/rtpproxy
LOCAL_REPO: localhost:5000/sippylabs/rtpproxy
PLATFORMS: linux/amd64,linux/i386,linux/arm/v7,linux/arm64
PLATFORMS: linux/amd64,linux/i386 #,linux/arm/v7,linux/arm64
BASE_IMAGE: debian:12-slim
CCACHE_ROOT: ccache
steps:
Expand Down Expand Up @@ -488,7 +488,9 @@ jobs:
with:
context: .
file: ./docker/Dockerfile.push
build-args: BASE_IMAGE=${{ env.LOCAL_REPO }}:latest
build-args: |
BASE_IMAGE=${{ env.BASE_IMAGE }}
BUILD_IMAGE=${{ env.LOCAL_REPO }}:latest
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
15 changes: 11 additions & 4 deletions docker/Dockerfile.push
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# syntax=docker/dockerfile:1.7-labs

ARG BASE_IMAGE
FROM $BASE_IMAGE AS build
ARG BUILD_IMAGE
FROM $BASE_IMAGE AS base
FROM $BUILD_IMAGE AS build
FROM base
LABEL maintainer="Maksym Sobolyev <[email protected]>"

USER root
Expand All @@ -8,9 +13,11 @@ USER root
ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /
RUN rm -rf /rtpproxy && rm -rf /var/cache/*

FROM $BASE_IMAGE
COPY --from=build / /
#RUN --mount=type=bind,from=build,target=/mnt,rw \
# rm -rf /mnt/rtpproxy /mnt/var/db/cache/* /mnt/mnt && \
# cp -Rp /mnt/ /
COPY --from=build --exclude=/rtpproxy/ --exclude=/var/db/cache/ \
--exclude=/etc/alternatives/ / /

ENTRYPOINT ["/usr/local/bin/rtpproxy", "-fF"]

0 comments on commit d54a2b1

Please sign in to comment.