-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.ci
More file actions
39 lines (32 loc) · 992 Bytes
/
Dockerfile.ci
File metadata and controls
39 lines (32 loc) · 992 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
# syntax=docker/dockerfile:1.7-labs
ARG GO_VERSION=1.26
FROM golang:${GO_VERSION}-bookworm
ARG LIBOPUS_VERSION=1.6.1
ENV DEBIAN_FRONTEND=noninteractive \
PATH=/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
LIBOPUS_VERSION=${LIBOPUS_VERSION} \
GOPUS_DISABLE_OPUSDEC=1 \
GOMODCACHE=/go/pkg/mod \
GOCACHE=/root/.cache/go-build
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
apt-get update \
&& apt-get install -y --no-install-recommends \
autoconf \
automake \
ca-certificates \
curl \
ffmpeg \
gcc \
g++ \
libtool \
make \
opus-tools \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go mod download
CMD ["bash"]