mirror of
https://github.com/mentos1386/dotfiles.git
synced 2024-11-30 11:01:21 +00:00
28 lines
853 B
Text
28 lines
853 B
Text
FROM sgerrand/alpine-abuild:3.12 as build
|
|
|
|
LABEL maintainer="Tine <mentos1386> Jozelj <tine@tjo.space>"
|
|
LABEL org.opencontainers.image.source https://github.com/mentos1386/workspace
|
|
|
|
COPY --chown=builder packages/mosh /home/builder/package
|
|
RUN sudo chown builder -R /home/builder/package
|
|
|
|
ARG VERSION=master
|
|
|
|
RUN sed -i 's/pkgver=master/pkgver=${VERSION}/g' /home/builder/package/APKBUILD
|
|
|
|
RUN abuild -r deps
|
|
RUN abuild fetch
|
|
RUN abuild unpack
|
|
RUN abuild prepare
|
|
RUN abuild build
|
|
RUN abuild package
|
|
|
|
FROM alpine:3
|
|
|
|
# Install mosh, so we get the dependencies
|
|
RUN apk --update --no-cache add mosh
|
|
|
|
COPY --from=build /home/builder/package/pkg/mosh/usr/bin/mosh-server /usr/bin/mosh-server
|
|
COPY --from=build /home/builder/package/pkg/mosh/usr/bin/mosh-client /usr/bin/mosh-client
|
|
COPY --from=build /home/builder/package/pkg/mosh/usr/bin/mosh /usr/bin/mosh
|
|
|