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 d8b56e8 commit 92c5aa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/rtpproxy_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -463,13 +463,12 @@ jobs:
cache-to: ${{ env.CACHE_SPEC }},mode=max

- name: Push Docker image
if: false
uses: docker/build-push-action@v6
with:
context: .
file: ./docker/Dockerfile.push
build-args: BASE_IMAGE=${{ env.BASE_IMAGE }}
push: true
build-args: BASE_IMAGE=rtpproxy:latest
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ env.PLATFORMS }}
Expand Down
15 changes: 3 additions & 12 deletions docker/Dockerfile.push
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
ARG BASE_IMAGE
FROM --platform=$TARGETPLATFORM $BASE_IMAGE as build
FROM $BASE_IMAGE AS build
LABEL maintainer="Maksym Sobolyev <[email protected]>"

USER root

# Set Environment Variables
ENV DEBIAN_FRONTEND noninteractive

WORKDIR /rtpproxy
COPY . /rtpproxy/

#install basic components
RUN /rtpproxy/docker/build.sh
RUN ls -l /usr/local/bin/rtpproxy*
RUN ls -l /usr/local/bin/makeann*
RUN ls -l /usr/local/lib/*rtpproxy*
ENV DEBIAN_FRONTEND=noninteractive

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

FROM --platform=$TARGETPLATFORM $BASE_IMAGE
FROM $BASE_IMAGE
COPY --from=build / /

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

0 comments on commit 92c5aa9

Please sign in to comment.