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 2d8e3c1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 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: |
TMP_IMAGE=${{ env.LOCAL_REPO }}:latest
BASE_IMAGE=${{ env.BASE_IMAGE }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
13 changes: 8 additions & 5 deletions docker/Dockerfile.push
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
# syntax=docker/dockerfile:1.7-labs

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

USER root

# Set Environment Variables
ENV DEBIAN_FRONTEND=noninteractive

WORKDIR /
RUN rm -rf /rtpproxy && rm -rf /var/cache/*
COPY --from=build --exclude=/rtpproxy/* --exclude=/var/cache/* / /

FROM $BASE_IMAGE
COPY --from=build / /
WORKDIR /

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

0 comments on commit 2d8e3c1

Please sign in to comment.