grab ohmyzsh during build time, check for install

This commit is contained in:
aptalca
2020-10-22 09:55:58 -04:00
parent 8a269aa62e
commit 4cd7a0b706
3 changed files with 31 additions and 10 deletions
+12 -2
View File
@@ -1,6 +1,16 @@
FROM lsiobase/alpine:3.12 as buildstage
RUN \
apk add --no-cache \
git && \
git clone https://github.com/ohmyzsh/ohmyzsh.git /root-layer/.oh-my-zsh
COPY root/ /root-layer/
# runtime stage
FROM scratch
LABEL maintainer="MiguelNdeCarvalho"
# copy local files
COPY root/ /
# Add files from buildstage
COPY --from=buildstage /root-layer/ /