dotfiles/packages/Dockerfile.mosh

29 lines
844 B
Text
Raw Normal View History

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 mosh /home/builder/package
RUN sudo chown builder -R /home/builder/package
2020-12-25 15:58:23 +00:00
ARG VERSION=master
RUN sed -i 's/pkgver=master/pkgver=${VERSION}/g' /home/builder/package/APKBUILD
2020-12-25 15:58:23 +00:00
RUN abuild -r deps
RUN abuild fetch
RUN abuild unpack
RUN abuild prepare
RUN abuild build
RUN abuild package
2020-12-25 15:58:23 +00:00
FROM alpine:3
2020-12-25 15:58:23 +00:00
# Install mosh, so we get the dependencies
RUN apk --update --no-cache add mosh
2020-12-25 15:58:23 +00:00
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
2020-12-25 15:58:23 +00:00