-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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"] |