Skip to content

Instantly share code, notes, and snippets.

@QiMata
Last active February 13, 2019 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QiMata/b361d0d306937ddc1303dbae9de7e287 to your computer and use it in GitHub Desktop.
Save QiMata/b361d0d306937ddc1303dbae9de7e287 to your computer and use it in GitHub Desktop.
A docker file that allows for using VLC
FROM ubuntu:xenial AS base
RUN apt-get update && \
apt-get install -y --no-install-recommends software-properties-common gdb && \
add-apt-repository -y ppa:aziotsdklinux/ppa-azureiot && \
apt-get update && \
apt-get install -y azure-iot-sdk-c-dev && \
rm -rf /var/lib/apt/lists/*
FROM base AS build-env
RUN apt-get update && \
apt-get install -y --no-install-recommends cmake gcc g++ make libcurl4-openssl-dev
FROM build-env AS vlc-env
RUN add-apt-repository ppa:videolan/stable-daily && \
apt-get update && \
apt-get install -y --no-install-recommends vlc && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . ./
RUN cmake -DCMAKE_BUILD_TYPE=Debug .
RUN make
FROM base
WORKDIR /app
COPY --from=vlc-env /app ./
CMD ["./main"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment