-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (31 loc) · 964 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:15.04
MAINTAINER Marcelo Emmerich <m.emmerich@pulsar-solutions.com>
RUN apt-get update \
&& apt-get install -y \
wget \
libtool \
build-essential \
pkg-config \
autoconf \
&& apt-get build-dep -y vlc \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /tmp
RUN wget http://download.videolan.org/pub/videolan/vlc/2.2.1/vlc-2.2.1.tar.xz
RUN tar vfx vlc-2.2.1.tar.xz
WORKDIR /tmp/vlc-2.2.1
COPY bank.c src/modules/
RUN ./bootstrap
RUN ./configure --disable-qt --disable-skins2 --enable-xcb --prefix=/usr
RUN make
RUN make install
WORKDIR /tmp
RUN rm -r /tmp/vlc-2.2.1 && rm -r /tmp/vlc-2.2.1.tar.xz
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
chown ${uid}:${gid} -R /home/developer
USER developer
ENV HOME /home/developer
WORKDIR /home/developer