diff --git a/Dockerfile b/Dockerfile index 26f5669c..d022853f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,17 @@ -FROM dannyben/alpine-ruby +FROM ruby:3.3.0-slim-bookworm ENV PS1 "\n\n>> bashly \W \$ " WORKDIR /app +ENV BASHLY_VERSION=1.1.6 +ENV RUBY_SYSTEM_VERSION=3.5.5 + # Install pandoc to support manpage generation (`bashly render :mandoc docs`) -RUN apk add --no-cache pandoc-cli +RUN apt update -y \ + && apt install pandoc -y \ + && apt clean -RUN gem install bashly --version 1.1.6 +RUN gem install bashly --version $BASHLY_VERSION \ + && gem update --system $RUBY_SYSTEM_VERSION -ENTRYPOINT ["bashly"] \ No newline at end of file +ENTRYPOINT ["bashly"]