Skip to content

Commit

Permalink
Rewrite Dockerfile using current best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
japhb committed Mar 4, 2024
1 parent bb9f960 commit 3006770
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ USER root:root
RUN apt-get update \
&& apt-get -y --no-install-recommends install build-essential \
&& zef update \
&& zef install Terminal::LineEditor \
&& zef install Term::termios:ver'<0.2>' \
&& rm -rf /root/.zef \
&& chgrp raku /tmp/.zef \
&& chmod g+w /tmp/.zef \
&& apt-get purge -y --auto-remove build-essential \
&& rm -rf /var/lib/apt/lists/*

COPY . /home/raku

RUN zef install --deps-only . \
&& raku -c -Ilib bin/mugs-cli
USER raku:raku

RUN zef install . --/test
WORKDIR /home/raku/MUGS/MUGS-UI-CLI
COPY . .

USER raku:raku
RUN zef install --deps-only . \
&& zef install --/test . \
&& rm -rf /home/raku/.zef $(find /tmp/.zef -maxdepth 1 -user raku)

ENTRYPOINT ["mugs-cli"]
CMD ["mugs-cli"]

0 comments on commit 3006770

Please sign in to comment.