Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Commit ff64260

Browse files
committed
* Switched to Alpine
Signed-off-by: Christian Berger <christian.berger@gu.se>
1 parent fd7421e commit ff64260

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

Dockerfile.amd64

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,24 @@
1414
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1515

1616
# Part to build opendlv-video-vpx-encoder.
17-
FROM ubuntu:18.04 as builder
17+
FROM alpine:3.7 as builder
1818
MAINTAINER Christian Berger "christian.berger@gu.se"
19-
RUN apt-get update -y && \
20-
apt-get upgrade -y && \
21-
apt-get dist-upgrade -y && \
22-
apt-get install -y --no-install-recommends \
23-
ca-certificates \
19+
20+
RUN apk update && \
21+
apk --no-cache add \
22+
diffutils \
2423
cmake \
25-
build-essential \
24+
g++ \
2625
git \
27-
yasm \
28-
wget
26+
libx11-dev \
27+
make \
28+
perl \
29+
wget \
30+
yasm
31+
RUN cd tmp && \
32+
git clone --depth 1 https://chromium.googlesource.com/libyuv/libyuv && \
33+
cd libyuv &&\
34+
make -f linux.mk libyuv.a && cp libyuv.a /usr/lib && cd include && cp -r * /usr/include
2935
RUN cd tmp && \
3036
git clone --depth 1 --branch v1.7.0 https://github.com/webmproject/libvpx.git && \
3137
mkdir build && cd build && \
@@ -38,9 +44,8 @@ RUN mkdir build && \
3844
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/tmp .. && \
3945
make && make install
4046

41-
4247
# Part to deploy opendlv-video-vpx-encoder.
43-
FROM ubuntu:18.04
48+
FROM alpine:3.7
4449
MAINTAINER Christian Berger "christian.berger@gu.se"
4550

4651
WORKDIR /usr/bin

0 commit comments

Comments
 (0)