Dockerfile: use fewer steps, trace entrypoint.sh
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ed1904483a
commit
7e4abc7baa
|
@ -3,14 +3,11 @@ COPY mirage-unikernel-unipi-spt.opam /home/opam/opam-repository/packages/mirage-
|
||||||
RUN opam update
|
RUN opam update
|
||||||
RUN opam depext mirage-unikernel-unipi-spt
|
RUN opam depext mirage-unikernel-unipi-spt
|
||||||
RUN opam install mirage-unikernel-unipi-spt
|
RUN opam install mirage-unikernel-unipi-spt
|
||||||
RUN cp $(opam config var bin)/unipi.spt .
|
RUN bindir="$(opam config var bin)"; cp $bindir/unipi.spt $bindir/solo5-elftool $bindir/solo5-spt .
|
||||||
RUN cp $(opam config var bin)/solo5-elftool .
|
|
||||||
RUN cp $(opam config var bin)/solo5-spt .
|
|
||||||
|
|
||||||
FROM ubuntu:20.04
|
FROM ubuntu:20.04
|
||||||
COPY --from=opam /home/opam/unipi.spt /unipi.spt
|
COPY --from=opam /home/opam/unipi.spt /unipi.spt
|
||||||
COPY --from=opam /home/opam/solo5-elftool /usr/local/bin/solo5-elftool
|
COPY --from=opam /home/opam/solo5-elftool /home/opam/solo5-spt /usr/local/bin/
|
||||||
COPY --from=opam /home/opam/solo5-spt /usr/local/bin/solo5-spt
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
RUN apt update && apt install -y iproute2
|
RUN apt update && apt install -y iproute2
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -e
|
#!/bin/sh -ex
|
||||||
|
|
||||||
if [ "$#" -lt 1 ]; then
|
if [ "$#" -lt 1 ]; then
|
||||||
echo Must provide the unikernel as argument >&2
|
echo Must provide the unikernel as argument >&2
|
||||||
|
|
Loading…
Reference in a new issue