-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathDockerfile
More file actions
50 lines (39 loc) · 857 Bytes
/
Copy pathDockerfile
File metadata and controls
50 lines (39 loc) · 857 Bytes
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
42
43
44
45
46
47
48
49
50
FROM debian:latest
RUN apt-get update
##
# git
##
RUN apt-get install -y git nano
##
# ffmpeg
##
ARG FFMPEG_VERSION
RUN apt-get install -y \
build-essential \
nasm \
pkg-config \
libx264-dev \
libpng-dev
RUN mkdir -p /opt/ffmpeg \
&& git clone https://github.com/FFmpeg/FFmpeg /opt/ffmpeg/src \
&& cd /opt/ffmpeg/src \
&& git checkout ${FFMPEG_VERSION}
RUN cd /opt/ffmpeg/src \
&& ./configure --prefix=.. --enable-libx264 --enable-gpl \
&& make \
&& make install
##
# go
##
ARG GO_VERSION
RUN apt-get install -y wget
RUN <<_EOF_ sh
arch=$(dpkg --print-architecture)
goArch="amd64"
case \${arch} in
arm64) goArch="arm64" ;;
esac
wget -O /tmp/go.tar.gz https://dl.google.com/go/go${GO_VERSION}.linux-\${goArch}.tar.gz
tar -C /opt -xzf /tmp/go.tar.gz
_EOF_
ENV PATH="$PATH:/opt/go/bin"