forked from tada-team/ubuntu-golang
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
48 lines (42 loc) · 1.4 KB
/
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
42
43
44
45
46
47
48
FROM docker.io/ubuntu:20.04
ENV GOPATH=/gocode
ENV PATH=$PATH:$GOPATH/bin
ENV GOVERSION=1.20
# golang
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
apt-utils \
software-properties-common \
gcc \
libc-dev \
&& add-apt-repository -y ppa:longsleep/golang-backports \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
golang-$GOVERSION-go \
golang-golang-x-tools \
&& apt-get autoremove -y \
&& apt-get remove -y \
apt-utils \
software-properties-common
# Create symbolic link
RUN ln -s /usr/lib/go-$GOVERSION /gocode
# tools
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
ffmpeg \
libavcodec-extra \
libmp3lame-dev \
libreoffice-writer \
tzdata
# td-libs
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl \
gnupg \
&& curl -s --compressed https://tada-team.github.io/ppa/KEY.gpg | apt-key add - \
&& curl -s --compressed -o /etc/apt/sources.list.d/td-debs.list https://tada-team.github.io/ppa/td-debs.list \
&& apt-get remove -y \
curl \
gnupg \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
td-janus=0.10.10-5 \
td-libvips-dev=8.10.6-3 \
&& apt-get autoremove -y