-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
37 lines (29 loc) · 772 Bytes
/
Copy pathDockerfile
File metadata and controls
37 lines (29 loc) · 772 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
FROM alpine AS builder
# Check required arguments exist. These will be provided by the Github Action
# Workflow and are required to ensure the correct branches are being used.
ARG SPS_ALSA_EXPLORE_BRANCH
RUN test -n "$SPS_ALSA_EXPLORE_BRANCH"
RUN apk -U add \
autoconf \
automake \
build-base \
git \
alsa-lib-dev
##### Build #####
WORKDIR /sps-alsa-explore
COPY . .
RUN git checkout "$SPS_ALSA_EXPLORE_BRANCH"
RUN autoreconf -i
RUN ./configure
RUN make
WORKDIR /
##### Built #####
# sps-alsa-explore runtime
FROM alpine
RUN apk -U add \
alsa-lib
# Copy build files.
COPY --from=builder /sps-alsa-explore/sps-alsa-explore /
# Remove anything we don't need.
RUN rm -rf /lib/apk/db/*
Entrypoint ["/sps-alsa-explore"]