Skip to content

Commit

Permalink
chore: provide BUILDPLATFORM for multi-stage build
Browse files Browse the repository at this point in the history
  • Loading branch information
birme committed Dec 2, 2022
1 parent cef7382 commit 163bd3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM debian:bullseye
FROM --platform=$BUILDPLATFORM debian:bullseye
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y install libgstreamer1.0-0 gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-libav gstreamer1.0-plugins-rtp gstreamer1.0-nice libsoup2.4-1 cmake gcc g++ make gdb libglib2.0-dev libgstreamer1.0-dev libgstreamer-plugins-bad1.0-dev libsoup2.4-dev
Expand All @@ -10,7 +10,7 @@ ADD ./ /src
RUN cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" .
RUN make

FROM debian:bullseye
FROM --platform=$BUILDPLATFORM debian:bullseye
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get -y install libgstreamer1.0-0 gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-libav gstreamer1.0-plugins-rtp gstreamer1.0-nice libsoup2.4-1 gstreamer1.0-tools
Expand Down

0 comments on commit 163bd3b

Please sign in to comment.